Created
October 2, 2012 17:56
-
-
Save BrianJoyce/3821718 to your computer and use it in GitHub Desktop.
debugging_argument_1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mean(*numbers) | |
| sum = numbers.inject(:+) | |
| return sum / numbers.length | |
| end | |
| # This will throw an error. Change this line so that it works. | |
| sample_avg = mean(5, 3, 6, 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment