Skip to content

Commit 75ed75e

Browse files
authored
chore(docs): fix typo in middleware guide (#141)
* chore(docs): fix typo * Update middleware.md
1 parent 62a6f66 commit 75ed75e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_stable/server/middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
233233
let (stream, _) = listener.accept().await?;
234234
let io = TokioIo::new(stream);
235235
tokio::spawn(async move {
236-
// N.B. should use tower service_fn here, since it's reuqired to be implemented tower Service trait before convert to hyper Service!
236+
// N.B. should use tower service_fn here, since it's required to be implemented tower Service trait before convert to hyper Service!
237237
let svc = tower::service_fn(hello);
238238
let svc = ServiceBuilder::new().layer_fn(Logger::new).service(svc);
239239
// Convert it to hyper service
@@ -244,10 +244,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
244244
});
245245
}
246246
}
247-
}
247+
248248
# fn main() {}
249249
```
250250

251251
[hellp-world]: {{ site.url }}/guides/1/server/hello-world/
252252
[upgrading]: {{ site.url }}/guides/1/upgrading/
253-
[adapter-trait]: {{ site.hyper_util_url }}/latest/hyper_util/service/struct.TowerToHyperService.html
253+
[adapter-trait]: {{ site.hyper_util_url }}/latest/hyper_util/service/struct.TowerToHyperService.html

0 commit comments

Comments
 (0)