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"
|
||||
|
||||
// Option[A] represents a value which may or may not be there. This is very
|
||||
// often preferable to nil-able pointers.
|
||||
// Option represents a value which may or may not be there. This is very often
|
||||
// preferable to nil-able pointers.
|
||||
type Option[A any] struct {
|
||||
isSome bool
|
||||
some A
|
||||
|
||||
Reference in new issue
Block a user