Permalink
Browse files

Corrected comment on Zipper.move. Previously the comment said it woul…

…d go to the absolute position n, but Zipper.move actually goes forward or backward n elements depending on the sign.
  • Loading branch information...
1 parent d488eb0 commit 2205df012494712d1e7db09505b8ece77fe51de5 @schmmd schmmd committed Mar 31, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/scala/scalaz/Zipper.scala
@@ -131,7 +131,9 @@ sealed trait Zipper[+A] {
def withFocus: Zipper[(A, Boolean)] = zipper(lefts.zip(Stream.continually(false)), (focus, true), rights.zip(Stream.continually(false)))
/**
- * Moves focus to the nth element of the zipper, or None if there is no such element.
+ * Moves focus n elements in the zipper, or None if there is no such element.
+ *
+ * @param n number of elements to move (positive is forward, negative is backwards)
*/
def move(n: Int): Option[Zipper[A]] = {
@tailrec

0 comments on commit 2205df0

Please sign in to comment.