summaryrefslogtreecommitdiff
path: root/lib/pry/object_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/object_path.rb')
-rw-r--r--lib/pry/object_path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pry/object_path.rb b/lib/pry/object_path.rb
index b200c2bb..28895a34 100644
--- a/lib/pry/object_path.rb
+++ b/lib/pry/object_path.rb
@@ -37,13 +37,13 @@ class Pry
loop do
# Scan for as long as we don't see a slash
- next_segment << scanner.scan(%r{[^/]*})
+ next_segment += scanner.scan(%r{[^/]*})
if complete?(next_segment) || scanner.eos?
scanner.getch # consume the slash
break
else
- next_segment << scanner.getch # append the slash
+ next_segment += scanner.getch # append the slash
end
end