Skip to content

Commit

Permalink
Merge pull request #14 from moznion/fix_godoc
Browse files Browse the repository at this point in the history
Tweak the grammatical items in godoc
  • Loading branch information
moznion authored Sep 5, 2022
2 parents ebd44c5 + d9b9e4b commit bb689e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ type Option[T any] struct {
exists *struct{}
}

// Some is a function to make a Option type instance with the actual value.
// Some is a function to make an Option type instance with the actual value.
func Some[T any](value T) Option[T] {
return Option[T]{
value: value,
exists: &struct{}{},
}
}

// None is a function to make a Option type that doesn't have a value.
// None is a function to make an Option type that doesn't have a value.
func None[T any]() Option[T] {
return Option[T]{}
}
Expand Down

0 comments on commit bb689e3

Please sign in to comment.