Skip to content

Commit b5d8890

Browse files
committed
[readme] Object.Some -> Option.Some
Fixes #327
1 parent c4c103d commit b5d8890

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -885,14 +885,14 @@ class Option {
885885
886886
let val = Option.Some(5);
887887
match(val) {
888-
when Object.Some(String and let a): console.log(`Got a string "${a}".`);
889-
when Object.Some(Number and let a): console.log(`Got a number ${a}.`);
890-
when Object.Some(...): console.log(`Got something unexpected.`);
891-
// Or `Object.Some`, either works.
892-
// `Object.Some()` will never match, as the return value
888+
when Option.Some(String and let a): console.log(`Got a string "${a}".`);
889+
when Option.Some(Number and let a): console.log(`Got a number ${a}.`);
890+
when Option.Some(...): console.log(`Got something unexpected.`);
891+
// Or `Option.Some`, either works.
892+
// `Option.Some()` will never match, as the return value
893893
// is a 1-item array, which doesn't match `[]`
894-
when Object.None(): console.log(`Operation failed.`);
895-
// or `Object.None`, either works
894+
when Option.None(): console.log(`Operation failed.`);
895+
// or `Option.None`, either works
896896
default: console.log(`Didn't get an Option at all.`)
897897
}
898898
```

0 commit comments

Comments
 (0)