Merge pull request #19883 from matthewadams/master
microscopic doc improvement
This commit is contained in:
commit
89200c8058
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class GraphStageDocSpec extends AkkaSpec {
|
||||||
val sourceGraph: Graph[SourceShape[Int], NotUsed] = new NumbersSource
|
val sourceGraph: Graph[SourceShape[Int], NotUsed] = new NumbersSource
|
||||||
|
|
||||||
// Create a Source from the Graph to access the DSL
|
// Create a Source from the Graph to access the DSL
|
||||||
val mySource: Source[Int, NotUsed] = Source.fromGraph(new NumbersSource)
|
val mySource: Source[Int, NotUsed] = Source.fromGraph(sourceGraph)
|
||||||
|
|
||||||
// Returns 55
|
// Returns 55
|
||||||
val result1: Future[Int] = mySource.take(10).runFold(0)(_ + _)
|
val result1: Future[Int] = mySource.take(10).runFold(0)(_ + _)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue