diff --git a/akka-docs/rst/java/stream/stages-overview.rst b/akka-docs/rst/java/stream/stages-overview.rst index 365a464914..b0ae2c87af 100644 --- a/akka-docs/rst/java/stream/stages-overview.rst +++ b/akka-docs/rst/java/stream/stages-overview.rst @@ -510,14 +510,14 @@ File IO Sinks and Sources ------------------------- Sources and sinks for reading and writing files can be found on ``FileIO``. -fromFile +fromPath ^^^^^^^^ Emit the contents of a file, as ``ByteString`` s, materializes into a ``CompletionStage`` which will be completed with a ``IOResult`` upon reaching the end of the file or if there is a failure. -toFile +toPath ^^^^^^ -Create a sink which will write incoming ``ByteString`` s to a given file. +Create a sink which will write incoming ``ByteString`` s to a given file path. diff --git a/akka-docs/rst/scala/stream/stages-overview.rst b/akka-docs/rst/scala/stream/stages-overview.rst index 5adb5e191b..5db202bb86 100644 --- a/akka-docs/rst/scala/stream/stages-overview.rst +++ b/akka-docs/rst/scala/stream/stages-overview.rst @@ -499,14 +499,14 @@ File IO Sinks and Sources ------------------------- Sources and sinks for reading and writing files can be found on ``FileIO``. -fromFile +fromPath ^^^^^^^^ Emit the contents of a file, as ``ByteString`` s, materializes into a ``Future`` which will be completed with a ``IOResult`` upon reaching the end of the file or if there is a failure. -toFile +toPath ^^^^^^ -Create a sink which will write incoming ``ByteString`` s to a given file. +Create a sink which will write incoming ``ByteString`` s to a given file path.