Skip to content

Commit e3d18e9

Browse files
committed
[ci skip] Correct typos in documentation
1 parent 89c43b9 commit e3d18e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ a new array instead of mutating the original one.
6565
**Example**
6666
```js
6767
const originalArray = ['a', 'b', 'c', 'd', 'e'];
68-
const resultArray = push(originalArray, 'f', 'g');
68+
const resultArray = immutablePush(originalArray, 'f', 'g');
6969
// -> originalArray ['a', 'b', 'c', 'd', 'e']
7070
// -> resultArray ['a', 'b', 'c', 'd', 'e', 'f', 'g']
7171
```
@@ -85,7 +85,7 @@ a new array instead of mutating the original one.
8585
**Example**
8686
```js
8787
const originalArray = ['a', 'b', 'c', 'd', 'e'];
88-
const resultArray = pop(originalArray);
88+
const resultArray = immutablePop(originalArray);
8989
// -> originalArray ['a', 'b', 'c', 'd', 'e']
9090
// -> resultArray ['a', 'b', 'c', 'd']
9191
```
@@ -105,7 +105,7 @@ Deletes an element from an array by its index in the array.
105105
**Example**
106106
```js
107107
const originalArray = ['a', 'b', 'c', 'd', 'e'];
108-
const resultArray = del(originalArray, 2);
108+
const resultArray = immutableDelete(originalArray, 2);
109109
// -> originalArray ['a', 'b', 'c', 'd', 'e']
110110
// -> resultArray ['a', 'b', 'd', 'e']
111111
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "immutable-arrays",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Immutable versions of normally mutable array methods",
55
"main": "lib/immutableArrays.js",
66
"scripts": {

0 commit comments

Comments
 (0)