Skip to content

Commit 4a6fd0d

Browse files
nieksandDoumanAsh
authored andcommitted
Tiny grammar and spelling fixes. (actix#122)
1 parent 390de2d commit 4a6fd0d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/ping.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct MyActor {
1717
count: usize,
1818
}
1919

20-
/// Declare actor and it's context
20+
/// Declare actor and its context
2121
impl Actor for MyActor {
2222
type Context = Context<Self>;
2323
}

src/actor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub trait Actor: Sized + 'static {
101101
/// fn main() {
102102
/// // initialize system
103103
/// System::run(|| {
104-
/// let addr = MyActor.start(); // <- start actor and get it's address
104+
/// let addr = MyActor.start(); // <- start actor and get its address
105105
/// # System::current().stop();
106106
/// });
107107
/// }

src/arbiter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ thread_local!(
2727

2828
/// Event loop controller
2929
///
30-
/// Arbiter controls event loop in it's thread. Each arbiter runs in separate
30+
/// Arbiter controls event loop in its thread. Each arbiter runs in separate
3131
/// thread. Arbiter provides several api for event loop access. Each arbiter
3232
/// can belongs to specific `System` actor.
3333
///

src/registry.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type AnyMap = HashMap<TypeId, Box<Any>, BuildHasherDefault<FnvHasher>>;
2929
/// `ArbiterService` which is unique per arbiter or `SystemService` which is
3030
/// unique per system.
3131
///
32-
/// If arbiter service is used outside of runnig arbiter, it panics.
32+
/// If arbiter service is used outside of running arbiter, it panics.
3333
///
3434
/// # Example
3535
///
@@ -96,7 +96,7 @@ pub struct Registry {
9696
/// Trait defines arbiter's service.
9797
#[allow(unused_variables)]
9898
pub trait ArbiterService: Actor<Context = Context<Self>> + Supervised + Default {
99-
/// Construct and srtart arbiter service
99+
/// Construct and start arbiter service
100100
fn start_service() -> Addr<Self> {
101101
Supervisor::start(|ctx| {
102102
let mut act = Self::default();
@@ -222,7 +222,7 @@ type InnerRegistry = Arc<ReentrantMutex<RefCell<AnyMapSend>>>;
222222
/// Trait defines system's service.
223223
#[allow(unused_variables)]
224224
pub trait SystemService: Actor<Context = Context<Self>> + Supervised + Default {
225-
/// Construct and srtart system service
225+
/// Construct and start system service
226226
fn start_service(sys: &Addr<Arbiter>) -> Addr<Self> {
227227
Supervisor::start_in_arbiter(sys, |ctx| {
228228
let mut act = Self::default();

0 commit comments

Comments
 (0)