1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix typos in README and comment (#119)

Signed-off-by: CRaLFa <minami.smd@gmail.com>
This commit is contained in:
CRaLFa
2024-09-12 16:40:19 +09:00
committed by GitHub
parent 68aeb4c725
commit 76c1297576
2 changed files with 3 additions and 3 deletions

View File

@@ -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/)? ### 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 #### 🧘🏽 Handle errors explicitly

View File

@@ -64,7 +64,7 @@ func Reverse[T any](o Ord[T]) Ord[T] {
}, o.Equals) }, 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] { func Contramap[A, B any](f func(B) A) func(Ord[A]) Ord[B] {
return func(o Ord[A]) Ord[B] { return func(o Ord[A]) Ord[B] {
return MakeOrd(func(x, y B) int { return MakeOrd(func(x, y B) int {