Skip to content

Commit

Permalink
fix typos in README and comment (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: CRaLFa <[email protected]>
  • Loading branch information
CRaLFa authored Sep 12, 2024
1 parent 68aeb4c commit 76c1297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ This library aims to provide a set of data types and functions that make it easy

### How does this play with the [🧘🏽 Zen Of Go](https://the-zen-of-go.netlify.app/)?

#### 🧘🏽 Each package fulfils a single purpose
#### 🧘🏽 Each package fulfills a single purpose

βœ”οΈ Each of the top level packages (e.g. Option, Either, ReaderIOEither, ...) fulfils the purpose of defining the respective data type and implementing the set of common operations for this data type.
βœ”οΈ Each of the top level packages (e.g. Option, Either, ReaderIOEither, ...) fulfills the purpose of defining the respective data type and implementing the set of common operations for this data type.

#### 🧘🏽 Handle errors explicitly

Expand Down
2 changes: 1 addition & 1 deletion ord/ord.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func Reverse[T any](o Ord[T]) Ord[T] {
}, o.Equals)
}

// Contramap creates an odering under a transformation function
// Contramap creates an ordering under a transformation function
func Contramap[A, B any](f func(B) A) func(Ord[A]) Ord[B] {
return func(o Ord[A]) Ord[B] {
return MakeOrd(func(x, y B) int {
Expand Down

0 comments on commit 76c1297

Please sign in to comment.