lib/pry/indent.rb: fix typos in #track_module_nesting

This commit is contained in:
Kyrylo Silin 2013-12-06 01:17:06 +02:00
parent b0fe06d988
commit 21b53af873
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ class Pry
# [ ["class", "Foo"], ["module", "Bar::Baz"], ["class <<", "self"] ]
#
# A nil value in the @module_nesting array happens in two places: either
# when @awaiting_token is true and we're still waiting for the string to
# when @awaiting_class is true and we're still waiting for the string to
# fill that space, or when a parse was rejected.
#
# At the moment this function is quite restricted about what formats it will
@ -341,7 +341,7 @@ class Pry
@module_nesting.last[1] = token if kind == :class
@awaiting_class = false
else
# leave @nesting[-1][
# leave @module_nesting[-1]
@awaiting_class = false
end
end