Skip to content

Commit 103f4a2

Browse files
committed
chore: fix typos
1 parent e442b00 commit 103f4a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

actix-web/MIGRATION-4.0.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ You may need to review the [guidance on shared mutable state](https://docs.rs/ac
372372
HttpServer::new(|| {
373373
- App::new()
374374
- .data(MyState::default())
375-
- .service(hander)
375+
- .service(handler)
376376

377377
+ let my_state: Data<MyState> = Data::new(MyState::default());
378378
+
379379
+ App::new()
380380
+ .app_data(my_state)
381-
+ .service(hander)
381+
+ .service(handler)
382382
})
383383
```
384384

actix-web/src/data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub(crate) type FnDataFactory =
6969
/// HttpResponse::Ok()
7070
/// }
7171
///
72-
/// /// Alteratively, use the `HttpRequest::app_data` method to access data in a handler.
72+
/// /// Alternatively, use the `HttpRequest::app_data` method to access data in a handler.
7373
/// async fn index_alt(req: HttpRequest) -> impl Responder {
7474
/// let data = req.app_data::<Data<Mutex<MyData>>>().unwrap();
7575
/// let mut my_data = data.lock().unwrap();

actix-web/src/guard/acceptable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::http::header::Accept;
2020
pub struct Acceptable {
2121
mime: mime::Mime,
2222

23-
/// Wether to match `*/*` mime type.
23+
/// Whether to match `*/*` mime type.
2424
///
2525
/// Defaults to false because it's not very useful otherwise.
2626
match_star_star: bool,

actix-web/src/guard/host.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use actix_http::{header, uri::Uri, RequestHead};
22

33
use super::{Guard, GuardContext};
44

5-
/// Creates a guard that matches requests targetting a specific host.
5+
/// Creates a guard that matches requests targeting a specific host.
66
///
77
/// # Matching Host
88
/// This guard will:

0 commit comments

Comments
 (0)