typelevel / fs2

Compositional, streaming I/O library for Scala
https://fs2.io
Other
2.38k stars 603 forks source link

Fix typo in `exists` scaladoc #3480

Closed vladislavsheludchenkov closed 2 months ago

vladislavsheludchenkov commented 2 months ago

See this scastie for reference: https://scastie.scala-lang.org/KKWe9upeRR6im3yZDfpDaQ

mzuehlke commented 2 months ago

Do you mind adding this as a testcase, if there isn't one already ?

vladislavsheludchenkov commented 2 months ago

@mzuehlke I believe this test covers it, as generator produces empty Stream sometimes. It's not explicit, but the outcome is the same: it compares it to List behavior, and List.empty.exists is always false

mzuehlke commented 2 months ago

Makes sense 👍