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

@@ -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 {