Skip to content

Commit 730e363

Browse files
committed
Merge pull request codebar#62 from boddhisattva/master
Highlighting the actual role of to_a in general & wrt the tutorial
2 parents bbd0b0e + 1a1d615 commit 730e363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/lesson2/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To get all the numbers from 1 up to 5, excluding 5.
4545
(1...5).to_a
4646
```
4747

48-
> `to_a` converts a range to an array
48+
> `to_a` returns an array representation of an object. In the above case, it converts a range to an array
4949
5050
### `Random.rand()`
5151

0 commit comments

Comments
 (0)