fn: fix documentation comment for Option
Remove the type generic from the `Option` type struct in the doc comment.
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -2,8 +2,8 @@ package fn
|
|||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
// Option[A] represents a value which may or may not be there. This is very
|
// Option represents a value which may or may not be there. This is very often
|
||||||
// often preferable to nil-able pointers.
|
// preferable to nil-able pointers.
|
||||||
type Option[A any] struct {
|
type Option[A any] struct {
|
||||||
isSome bool
|
isSome bool
|
||||||
some A
|
some A
|
||||||
|
|||||||
Reference in new issue
Block a user