Skip to content

Commit e19e117

Browse files
Josh Younguohzxela
authored andcommitted
Remove dollar sign from variable name
1 parent a7cf3b0 commit e19e117

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,15 +509,15 @@ be happier than the vast majority of other programmers.
509509
```ruby
510510
# Global variable referenced by following method.
511511
# If we had another method that used this name, now it'd be an array and it could break it.
512-
$name = 'Ryan McDermott'
512+
name = 'Ryan McDermott'
513513

514514
def split_into_first_and_last_name
515-
$name = $name.split(' ')
515+
name = $name.split(' ')
516516
end
517517

518518
split_into_first_and_last_name()
519519

520-
puts $name # ['Ryan', 'McDermott']
520+
puts name # ['Ryan', 'McDermott']
521521
```
522522

523523
**Good:**

0 commit comments

Comments
 (0)