Skip to content

Commit

Permalink
fix some typos (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jun 8, 2024
1 parent b0e9886 commit 7647f13
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ object LoggingTestKit {
messageContains(messageIncludes).withLogLevel(Level.WARN)

/**
* Create a filter for WARN level events with a an included
* Create a filter for WARN level events with an included
* `throwable` that is a class or subclass of the given
* * `Throwable` class.
*
Expand All @@ -192,7 +192,7 @@ object LoggingTestKit {
messageContains(messageIncludes).withLogLevel(Level.ERROR)

/**
* Create a filter for ERROR level events with a an included
* Create a filter for ERROR level events with an included
* `throwable` that is a class or subclass of the given
* * `Throwable` class.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ object LoggingTestKit {
messageContains(messageIncludes).withLogLevel(Level.WARN)

/**
* Create a filter for WARN level events with a an included
* Create a filter for WARN level events with an included
* `throwable` that is a class or subclass of the given
* `Throwable` `ClassTag`.
*
Expand All @@ -201,7 +201,7 @@ object LoggingTestKit {
messageContains(messageIncludes).withLogLevel(Level.ERROR)

/**
* Create a filter for WARN level events with a an included
* Create a filter for WARN level events with an included
* `throwable` that is a class or subclass of the given
* `Throwable` `ClassTag`.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ActorRefIgnoreSpec extends ScalaTestWithActorTestKit() with AnyWordSpecLik
}

/**
* This actor sends a ask to 'askMeRef' at bootstrap and forward the answer to the probe.
* This actor sends an ask to 'askMeRef' at bootstrap and forward the answer to the probe.
* We will use it through out this test.
*/
def behavior(askMeRef: ActorRef[Request], probe: TestProbe[Int]) = Behaviors.setup[Int] { context =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class ExternalShardAllocationStrategy(systemProvider: ClassicActorSystemProvider

val currentAllocationByAddress: Map[Address, immutable.IndexedSeq[ShardId]] = currentShardAllocations.map {
case (ref: ActorRefScope, value) if ref.isLocal =>
(cluster.selfAddress, value) // so it can be compared to a address with host and port
(cluster.selfAddress, value) // so it can be compared to an address with host and port
case (key, value) => (key.path.address, value)
}

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/typed/guide/tutorial_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ In fact, before your first actor is started, Pekko has already created two actor

The easiest way to see the actor hierarchy in action is to print @apidoc[actor.typed.ActorRef] instances. In this small experiment, we create an actor, print its reference, create a child of this actor, and print the child's reference.

In a new project, create a `com.example` package and with a @scala[a new Scala file called `ActorHierarchyExperiments.scala` here. Copy and paste the code from the snippet below to this new source file]@java[a Java file for each of the classes in the snippet below and copy the respective contents]. Save your @scala[file and run `sbt "runMain com.example.ActorHierarchyExperiments"`]@java[files and run `com.example.ActorHierarchyExperiments` from your build tool or IDE] to observe the output.
In a new project, create a `com.example` package and with a @scala[new Scala file called `ActorHierarchyExperiments.scala` here. Copy and paste the code from the snippet below to this new source file]@java[Java file for each of the classes in the snippet below and copy the respective contents]. Save your @scala[file and run `sbt "runMain com.example.ActorHierarchyExperiments"`]@java[files and run `com.example.ActorHierarchyExperiments` from your build tool or IDE] to observe the output.

Scala
: @@snip [ActorHierarchyExperiments.scala](/docs/src/test/scala/typed/tutorial_1/ActorHierarchyExperiments.scala) { #print-refs }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private[persistence] trait LeveldbIdMapping extends Actor { this: LeveldbStore =
* Get the mapped numeric id for the specified persistent actor `id`. Creates and
* stores a new mapping if necessary.
*
* This method is thread safe and it is allowed to call it from a another
* This method is thread safe and it is allowed to call it from another
* thread than the actor's thread. That is necessary for Future composition,
* e.g. `asyncReadHighestSequenceNr` followed by `asyncReplayMessages`.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ final class Flow[In, Out, Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends Gr
new Flow(delegate.scan(zero)(f.apply))

/**
* Similar to `scan` but with a asynchronous function,
* Similar to `scan` but with an asynchronous function,
* emits its current value which starts at `zero` and then
* applies the current and next value to the given function `f`,
* emitting a `Future` that resolves to the next current value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ object Sink {
new Sink(scaladsl.Sink.lastOption[In].mapMaterializedValue(_.map(_.toJava)(ExecutionContexts.parasitic).asJava))

/**
* A `Sink` that materializes into a a `CompletionStage` of `List<In>` containing the last `n` collected elements.
* A `Sink` that materializes into a `CompletionStage` of `List<In>` containing the last `n` collected elements.
*
* If the stream completes before signaling at least n elements, the `CompletionStage` will complete with all elements seen so far.
* If the stream never completes the `CompletionStage` will never complete.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
new Source(delegate.scan(zero)(f.apply))

/**
* Similar to `scan` but with a asynchronous function,
* Similar to `scan` but with an asynchronous function,
* emits its current value which starts at `zero` and then
* applies the current and next value to the given function `f`,
* emitting a `Future` that resolves to the next current value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ class SubFlow[In, Out, Mat](
new SubFlow(delegate.scan(zero)(f.apply))

/**
* Similar to `scan` but with a asynchronous function,
* Similar to `scan` but with an asynchronous function,
* emits its current value which starts at `zero` and then
* applies the current and next value to the given function `f`,
* emitting a `Future` that resolves to the next current value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class SubSource[Out, Mat](
new SubSource(delegate.scan(zero)(f.apply))

/**
* Similar to `scan` but with a asynchronous function,
* Similar to `scan` but with an asynchronous function,
* emits its current value which starts at `zero` and then
* applies the current and next value to the given function `f`,
* emitting a `Future` that resolves to the next current value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ object Sink {
}

/**
* A `Sink` that materializes into a a `Future` of `immutable.Seq[T]` containing the last `n` collected elements.
* A `Sink` that materializes into a `Future` of `immutable.Seq[T]` containing the last `n` collected elements.
*
* If the stream completes before signaling at least n elements, the `Future` will complete with all elements seen so far.
* If the stream never completes, the `Future` will never complete.
Expand Down

0 comments on commit 7647f13

Please sign in to comment.