Skip to content

Commit

Permalink
Fix mistake in documentation of Group.remove (#1566)
Browse files Browse the repository at this point in the history
Documentation initially said `remove` was equivalent to `combine(a, inverse(a))`. Changed to be equivalent to `combine(a, inverse(b))` instead.
  • Loading branch information
LukaJCB authored and kailuowang committed Mar 21, 2017
1 parent 8fbf546 commit df0b9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/main/scala/cats/kernel/Group.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit df0b9ab

Please sign in to comment.