replace unicode arrows

* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
This commit is contained in:
Patrik Nordwall 2019-02-09 15:25:39 +01:00
parent e4d38f92a4
commit 5c96a5f556
1521 changed files with 18846 additions and 18786 deletions

View file

@ -57,7 +57,7 @@ class SubstreamDocSpec extends AkkaSpec {
val charCount = Source(text.toList)
.splitAfter { _ == '\n' }
.filter(_ != '\n')
.map(_ 1)
.map(_ => 1)
.reduce(_ + _)
.to(Sink.foreach(println))
.run()
@ -67,13 +67,13 @@ class SubstreamDocSpec extends AkkaSpec {
"generate substreams by flatMapConcat and flatMapMerge" in {
//#flatMapConcat
Source(1 to 2)
.flatMapConcat(i Source(List.fill(3)(i)))
.flatMapConcat(i => Source(List.fill(3)(i)))
.runWith(Sink.ignore)
//#flatMapConcat
//#flatMapMerge
Source(1 to 2)
.flatMapMerge(2, i Source(List.fill(3)(i)))
.flatMapMerge(2, i => Source(List.fill(3)(i)))
.runWith(Sink.ignore)
//#flatMapMerge
}