Skip to content

Option additions #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
docs(option): fix embarassing typos
Co-authored-by: Christoph Knittel <christoph@knittel.cc>
  • Loading branch information
glennsl and cknitt committed Mar 7, 2023
commit a056cd0e870fb23dd7d66c97668cf92196deefd5
4 changes: 2 additions & 2 deletions src/Core__Option.resi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let someString: option<string> = Some("hello")
*/

/**
`flat(value)` flattens a nested `option` value to a single level..
`flat(value)` flattens a nested `option` value to a single level.

## Examples

Expand Down Expand Up @@ -115,7 +115,7 @@ Option.getUnsafe(Some(3)) == 3
Option.getUnsafe(None) // Raises an error
```

## Improtant
## Important

This is an unsafe operation, it assumes `value` is neither `None`, `Some(None))`, `Some(Some(None))` etc.
*/
Expand Down