Fix a couple of misspelled words. (#34055)
This commit is contained in:
committed by
The Coding Aviator
parent
915c5fbfb6
commit
6a43b4d61e
@ -72,7 +72,7 @@ array[5]
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### .pop
|
#### .pop
|
||||||
The .pop method will permantently remove the last element of an array and return this element:
|
The .pop method will permanently remove the last element of an array and return this element:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
array.pop
|
array.pop
|
||||||
@ -80,7 +80,7 @@ array.pop
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### .shift
|
#### .shift
|
||||||
The .shift method will permantently remove the first element of an array and return this element:
|
The .shift method will permanently remove the first element of an array and return this element:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
array.shift
|
array.shift
|
||||||
|
Reference in New Issue
Block a user