Skip to content

Commit 916964b

Browse files
committed
docs(readme): fix wrong typing
1 parent 573f094 commit 916964b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Import package in your code and you are ready:
2828
import {Some, Option} from 'rustils';
2929

3030
const option: Option<number> = Some(10);
31-
assert.equal(option.andThen(v => v + 50).unwrap(), 60);
31+
assert.equal(option.map(v => v + 50).unwrap(), 60);
3232
```
3333
You can see detailed using in [API reference](https://lodin.github.io/rustils/).
3434

@@ -41,7 +41,7 @@ var Some = rustils.Some;
4141
var None = rustils.None;
4242

4343
var option = Some(10);
44-
assert.equal(option.andThen(function(v) { return v + 50 }).unwrap(), 60);
44+
assert.equal(option.map(function(v) { return v + 50; }).unwrap(), 60);
4545
```
4646

4747
## About project

0 commit comments

Comments
 (0)