From 76c12975768c5bca8a3a8a84f53af63da798fdf1 Mon Sep 17 00:00:00 2001 From: CRaLFa Date: Thu, 12 Sep 2024 16:40:19 +0900 Subject: [PATCH] fix typos in README and comment (#119) Signed-off-by: CRaLFa --- README.md | 4 ++-- ord/ord.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {