Skip to content

Commit 93bb415

Browse files
authored
[DOC] Change local method to local variable in assignment docs
1 parent 8fded5f commit 93bb415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/syntax/assignment.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Rather than printing "true" you receive a NameError, "undefined local variable
107107
or method `a'". Since ruby parses the bare +a+ left of the +if+ first and has
108108
not yet seen an assignment to +a+ it assumes you wish to call a method. Ruby
109109
then sees the assignment to +a+ and will assume you are referencing a local
110-
method.
110+
variable.
111111

112112
The confusion comes from the out-of-order execution of the expression. First
113113
the local variable is assigned-to then you attempt to call a nonexistent

0 commit comments

Comments
 (0)