Skip to content

Commit f37d42f

Browse files
nobumatzbot
authored andcommitted
[ruby/erb] [DOC] Fix the description of #new_toplevel
(ruby/erb#78) ruby/erb@de0f18579e
1 parent e687940 commit f37d42f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/erb.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,9 @@ def result_with_hash(hash)
999999
# See [Default Binding][default binding].
10001000
#
10011001
# Argument `symbols` is an array of symbols;
1002-
# each symbol `symbol` is used to define (unless already defined) a variable in the binding
1003-
# whose name is `symbol` and whose value is `nil`.
1002+
# each symbol `symbol` is defined as a new variable to hide and
1003+
# prevent it from overwriting a variable of the same name already
1004+
# defined within the binding.
10041005
#
10051006
# [default binding]: rdoc-ref:ERB@Default+Binding
10061007
def new_toplevel(vars = nil)

0 commit comments

Comments
 (0)