Skip to content

Commit

Permalink
Fix a typo in the users variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloboeira authored Jun 20, 2016
1 parent 6ed5a2e commit 7a21f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idiomatic_ruby/implicit_return.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Every block in ruby will return the value of the last line automatically, so it'

```ruby
def extract_user_ids(users)
user.map(&:id)
users.map(&:id)
end

# is the same as

def extract_user_ids(users)
return user.map(&:id)
return users.map(&:id)
end
```

Expand Down

0 comments on commit 7a21f8c

Please sign in to comment.