Skip to content

Commit

Permalink
chore(docs): adjusts readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
martianoff committed Oct 5, 2023
1 parent 9e5baeb commit 04e37a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ The idea is based on Scala Option and Java Optional. The package allows to creat

Set an non-empty value:
```
option.Some[T](v)
option.Some[int](10)
```

Set an empty value:
```
v := option.None[T]()
v := option.None[int]()
```

Set an empty value if v is nil, otherwise set non-empty value
```
v := option.NewOption[T](v)
v := option.NewOption[int](10)
```

Remap one option to another option
Expand Down

0 comments on commit 04e37a0

Please sign in to comment.