From b690cc049e8d010b6eb7d7d5abd4451a7c180095 Mon Sep 17 00:00:00 2001 From: Boris Korogvich Date: Thu, 13 Oct 2016 12:41:33 +0300 Subject: [PATCH] Improve akka-stream docs (missing `an`) (#21649) --- .../scala/akka/stream/ActorMaterializer.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/akka-stream/src/main/scala/akka/stream/ActorMaterializer.scala b/akka-stream/src/main/scala/akka/stream/ActorMaterializer.scala index fa4f431e355..9f285be3477 100644 --- a/akka-stream/src/main/scala/akka/stream/ActorMaterializer.scala +++ b/akka-stream/src/main/scala/akka/stream/ActorMaterializer.scala @@ -23,7 +23,7 @@ import scala.util.control.NoStackTrace object ActorMaterializer { /** - * Scala API: Creates a ActorMaterializer which will execute every step of a transformation + * Scala API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create one actor that in turn creates actors for the transformation steps. @@ -43,7 +43,7 @@ object ActorMaterializer { } /** - * Scala API: Creates a ActorMaterializer which will execute every step of a transformation + * Scala API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create these actors, therefore it is *forbidden* to pass this object @@ -67,7 +67,7 @@ object ActorMaterializer { } /** - * Scala API: Creates a ActorMaterializer which will execute every step of a transformation + * Scala API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create these actors, therefore it is *forbidden* to pass this object @@ -97,7 +97,7 @@ object ActorMaterializer { } /** - * Java API: Creates a ActorMaterializer which will execute every step of a transformation + * Java API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create these actors, therefore it is *forbidden* to pass this object @@ -110,7 +110,7 @@ object ActorMaterializer { apply()(context) /** - * Java API: Creates a ActorMaterializer which will execute every step of a transformation + * Java API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create one actor that in turn creates actors for the transformation steps. @@ -119,7 +119,7 @@ object ActorMaterializer { apply(Option(settings), None)(context) /** - * Java API: Creates a ActorMaterializer which will execute every step of a transformation + * Java API: Creates an ActorMaterializer which will execute every step of a transformation * pipeline within its own [[akka.actor.Actor]]. The required [[akka.actor.ActorRefFactory]] * (which can be either an [[akka.actor.ActorSystem]] or an [[akka.actor.ActorContext]]) * will be used to create these actors, therefore it is *forbidden* to pass this object @@ -138,7 +138,7 @@ object ActorMaterializer { case c: ActorContext ⇒ c.system case null ⇒ throw new IllegalArgumentException("ActorRefFactory context must be defined") case _ ⇒ - throw new IllegalArgumentException(s"ActorRefFactory context must be a ActorSystem or ActorContext, got [${context.getClass.getName}]") + throw new IllegalArgumentException(s"ActorRefFactory context must be an ActorSystem or ActorContext, got [${context.getClass.getName}]") } system } @@ -161,7 +161,7 @@ private[akka] object ActorMaterializerHelper { } /** - * A ActorMaterializer takes the list of transformations comprising a + * An ActorMaterializer takes the list of transformations comprising a * [[akka.stream.scaladsl.Flow]] and materializes them in the form of * [[org.reactivestreams.Processor]] instances. How transformation * steps are split up into asynchronous regions is implementation