Skip to content

Commit

Permalink
fn: fix documentation comment for Option
Browse files Browse the repository at this point in the history
Remove the type generic from the `Option` type struct in the doc
comment.
  • Loading branch information
ffranr committed Oct 25, 2024
1 parent a5e6798 commit 1d8197d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fn/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d8197d

Please sign in to comment.