mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-13 14:42:36 +02:00
fn: fix documentation comment for Option
Remove the type generic from the `Option` type struct in the doc comment.
This commit is contained in:
@ -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