We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573f094 commit 916964bCopy full SHA for 916964b
README.md
@@ -28,7 +28,7 @@ Import package in your code and you are ready:
28
import {Some, Option} from 'rustils';
29
30
const option: Option<number> = Some(10);
31
-assert.equal(option.andThen(v => v + 50).unwrap(), 60);
+assert.equal(option.map(v => v + 50).unwrap(), 60);
32
```
33
You can see detailed using in [API reference](https://lodin.github.io/rustils/).
34
@@ -41,7 +41,7 @@ var Some = rustils.Some;
41
var None = rustils.None;
42
43
var option = Some(10);
44
-assert.equal(option.andThen(function(v) { return v + 50 }).unwrap(), 60);
+assert.equal(option.map(function(v) { return v + 50; }).unwrap(), 60);
45
46
47
## About project
0 commit comments