Skip to content

Commit

Permalink
Merge pull request gauthamchandra#3 from herenow/patch-2
Browse files Browse the repository at this point in the history
Replaced link to gif with actual gif, fixed bold text typo
  • Loading branch information
gauthamchandra committed Jun 30, 2015
2 parents 2618ffa + 25807a2 commit e0c73b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ Converting symbols to Procs is one such example. See this example below:
["1", "2", "3"].map(&:to_i) # => [1,2,3]
```

Most devs will probably be like [Lol Wuuuuut?](http://replygif.net/i/311.gif). Everything is fairly normal until we hit the ```&:to_i```
Most devs will probably be like...

![](http://replygif.net/i/311.gif)

Everything is fairly normal until we hit the ```&:to_i```


What is happening is:
Expand Down Expand Up @@ -181,7 +185,7 @@ end

####Returning from a function

If you want to return something, you can use the ```return``` keyword. **HOWEVER, if the last line of a function is the return statement, then the ```return``` keyword isn't needed. Ruby will automatically return the last variable set or retrieved without the return keyword. See below:
If you want to return something, you can use the ```return``` keyword. **HOWEVER**, if the last line of a function is the return statement, then the ```return``` keyword isn't needed. Ruby will automatically return the last variable set or retrieved without the return keyword. See below:

```ruby
#bad
Expand Down

0 comments on commit e0c73b9

Please sign in to comment.