diff --git a/README.md b/README.md index d05d55a..68f7bf9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ord/ord.go b/ord/ord.go index 4d28b16..12824eb 100644 --- a/ord/ord.go +++ b/ord/ord.go @@ -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 {