From 91eb2ef7cc75809638ba0a5361ee47656e6bf932 Mon Sep 17 00:00:00 2001 From: LukaJCB Date: Tue, 21 Mar 2017 13:11:24 +0100 Subject: [PATCH] Fix mistake in documentation of Group.remove Documentation initially said `remove` was equivalent to `combine(a, inverse(a))`. Changed to be equivalent to `combine(a, inverse(b))` instead. --- kernel/src/main/scala/cats/kernel/Group.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/main/scala/cats/kernel/Group.scala b/kernel/src/main/scala/cats/kernel/Group.scala index bb4f7b3a50..8001de0752 100644 --- a/kernel/src/main/scala/cats/kernel/Group.scala +++ b/kernel/src/main/scala/cats/kernel/Group.scala @@ -17,7 +17,7 @@ trait Group[@sp(Int, Long, Float, Double) A] extends Any with Monoid[A] { /** * Remove the element `b` from `a`. * - * Equivalent to `combine(a, inverse(a))` + * Equivalent to `combine(a, inverse(b))` */ def remove(a: A, b: A): A = combine(a, inverse(b))