Permalink
Browse files

improve example

use `Pure.done` specifically in the example to improve clarity
  • Loading branch information...
Sarunas Valaskevicius
Sarunas Valaskevicius committed May 22, 2018
1 parent 3778d31 commit 6dbfddd3f52226435e24e9eb2a3914d101879209
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/migration-guide-0.10.md
@@ -84,7 +84,7 @@ In 0.10, the `Handle` type has been removed. Instead, custom pulls are written d
```scala
// Equivalent to s.take(1)
s.pull.uncons1.flatMap {
case None => Pull.pure(())
case None => Pull.done
case Some((hd, tl)) => Pull.output1(hd)
}.stream
```

0 comments on commit 6dbfddd

Please sign in to comment.