added missing closing tag for code snippet (#25673)

This commit is contained in:
Sergei Mellow
2018-10-23 15:09:26 -04:00
committed by Paul Gamble
parent b8654ccba4
commit 3d694d7ffd

View File

@ -148,6 +148,7 @@ array = [1, 2, 3, 4, 5]
=> [1, 2, 3, 4, 5] => [1, 2, 3, 4, 5]
array.include?(3) array.include?(3)
=> true => true
```
#### .flatten #### .flatten
The flatten method can be used to take an array that contains nested arrays and create a one-dimensional array: The flatten method can be used to take an array that contains nested arrays and create a one-dimensional array: