Skip to content

Commit c0f8d57

Browse files
committed
fix: option package
1 parent 73e20f0 commit c0f8d57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,6 @@ curryedSum(1)(2)
240240
#### Option
241241

242242
Option represents encapsulation of an optional value, it might be used as the return type of functions which may or may not return a meaningful value when they are applied.
243-
You could instanciate an `option.Option[T]` with a value with `option.Some(val)`. If the value is missing you can use `option.None[T]()`.
243+
You could instanciate an `opt.Option[T]` with a value with `opt.Some(val)`. If the value is missing you can use `opt.None[T]()`.
244244

245245
Option exports `Some`, `None`, `IsSome`, `IsNone`, `GetOrElse`, `Match`, `Map`, `Chain`.

option/option.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package option
1+
package opt
22

33
import (
44
"github.com/repeale/fp-go"

option/option_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package option
1+
package opt
22

33
import (
44
"testing"

0 commit comments

Comments
 (0)