Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #4634

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait DivisionRing[@sp(Byte, Short, Int, Long, Float, Double) A] extends Any wit
* This is implemented in terms of basic Ring ops. However, this is
* probably significantly less efficient than can be done with a
* specific type. So, it is recommended that this method be
* overriden.
* overridden.
*
* This is possible because a Double is a rational number.
*/
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/TraverseFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ trait TraverseFilter[F[_]] extends FunctorFilter[F] {

/**
* Removes duplicate elements from a list, keeping only the first occurrence.
* This is usually faster than ordDistinct, especially for things that have a slow comparion (like String).
* This is usually faster than ordDistinct, especially for things that have a slow comparison (like String).
*/
def hashDistinct[A](fa: F[A])(implicit H: Hash[A]): F[A] =
traverseFilter(fa) { a =>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/ContT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ object ContT {
* _ <- ContT.callCC( (k: Unit => ContT[IO, Unit, Unit]) =>
* ContT.liftF(IO.println("this will print first")) >>
* k(()) >>
* ContT.liftF(IO.println("this will NOT print as we short-circuit to the contination"))
* ContT.liftF(IO.println("this will NOT print as we short-circuit to the continuation"))
* )
* _ <- ContT.liftF(IO.println("this will print second")])
* } yield ()
Expand Down