Skip to content

Commit 0144914

Browse files
authored
Merge pull request #2671 from rossabaker/fix-jdk8-decodecwithcharset
Fix decodeCWithCharset with JDK8
2 parents 7cff383 + 7351481 commit 0144914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/src/main/scala/fs2/text.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ object text {
258258
decoder: CharsetDecoder,
259259
out: CharBuffer
260260
): Pull[F, String, Unit] = {
261-
out.clear()
261+
(out: Buffer).clear()
262262
decoder.flush(out) match {
263263
case res if res.isUnderflow =>
264264
if (out.position() > 0) {

0 commit comments

Comments
 (0)