From 5d0a4a6062a110d50543672cc9718453fc98bc52 Mon Sep 17 00:00:00 2001 From: egisj Date: Wed, 29 Jul 2015 23:01:26 +0100 Subject: [PATCH] =str fix typo in error message --- akka-stream/src/main/scala/akka/stream/impl/StreamLayout.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-stream/src/main/scala/akka/stream/impl/StreamLayout.scala b/akka-stream/src/main/scala/akka/stream/impl/StreamLayout.scala index 721c349c68..461ae2f691 100644 --- a/akka-stream/src/main/scala/akka/stream/impl/StreamLayout.scala +++ b/akka-stream/src/main/scala/akka/stream/impl/StreamLayout.scala @@ -208,7 +208,7 @@ private[akka] object StreamLayout { def compose[A, B, C](that: Module, f: (A, B) ⇒ C): Module = { if (Debug) validate(this) - require(that ne this, "A module cannot be added to itself. You should pass a separate instance to grow().") + require(that ne this, "A module cannot be added to itself. You should pass a separate instance to compose().") require(!subModules(that), "An existing submodule cannot be added again. All contained modules must be unique.") val modules1 = if (this.isSealed) Set(this) else this.subModules