Skip to content

Commit 866ff5a

Browse files
committed
Fix references to AutoCloseable in some scaladocs
1 parent e4406fb commit 866ff5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,11 +3827,11 @@ object Stream extends StreamLowPriority {
38273827
override def apply[A](fa: Resource[F, A]): Stream[F, A] = resourceWeak[F, A](fa)
38283828
}
38293829

3830-
/** Converts the supplied [[java.lang.Autoclosable]] into a singleton stream. */
3830+
/** Converts the supplied [[java.lang.AutoCloseable]] into a singleton stream. */
38313831
def fromAutoCloseable[F[_]: Sync, O <: AutoCloseable](fo: F[O]): Stream[F, O] =
38323832
Stream.resource(Resource.fromAutoCloseable(fo))
38333833

3834-
/** Like [[fromAutoClosable]] but does not introduce a scope, allowing finalization to occur after
3834+
/** Like [[fromAutoCloseable]] but does not introduce a scope, allowing finalization to occur after
38353835
* subsequent appends or other scope-preserving transformations.
38363836
*
38373837
* Scopes can be manually introduced via [[Stream#scope]] if desired.

0 commit comments

Comments
 (0)