Skip to content

Commit 15bf4a4

Browse files
committed
[DOC] Fix the description of #new_toplevel
1 parent dee5dd4 commit 15bf4a4

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)