From 359eea0a5620a57c686b79e6e3811faeb762975a Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Mon, 9 Sep 2024 13:34:56 +0800 Subject: [PATCH] Fix typos --- .typos.toml | 8 ++++++++ examples/poem/local-server-with-browser/src/main.rs | 2 +- poem-grpc/src/metadata.rs | 2 +- poem-openapi/CHANGELOG.md | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000000..1f48682ab5 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,8 @@ +# See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos + +[files] +extend-exclude = [ + "examples/poem/tls/src/main.rs", + "*.css", + "*.js", +] diff --git a/examples/poem/local-server-with-browser/src/main.rs b/examples/poem/local-server-with-browser/src/main.rs index ae36067e24..85766021c2 100644 --- a/examples/poem/local-server-with-browser/src/main.rs +++ b/examples/poem/local-server-with-browser/src/main.rs @@ -19,7 +19,7 @@ async fn main() -> Result<(), std::io::Error> { // To test port assignment, run two instances of this example at once. // - // For ports <1024, running with administrator priveledges would be needed + // For ports <1024, running with administrator privileges would be needed // on Unix. For port 0, the OS would assign a port and we'd need to find out // what that port's number is. let (min_port, max_port) = (8080, 8085); diff --git a/poem-grpc/src/metadata.rs b/poem-grpc/src/metadata.rs index 54e34a6a8b..9ecb68f333 100644 --- a/poem-grpc/src/metadata.rs +++ b/poem-grpc/src/metadata.rs @@ -1,4 +1,4 @@ -//! Metadata releated types +//! Metadata related types use std::str::FromStr; diff --git a/poem-openapi/CHANGELOG.md b/poem-openapi/CHANGELOG.md index 9244d0a61b..2c631b90be 100644 --- a/poem-openapi/CHANGELOG.md +++ b/poem-openapi/CHANGELOG.md @@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # [4.0.0] 2024-01-06 - upgrade to `hyper1` -- added documetation on how to merge API specs [#716](https://github.com/poem-web/poem/pull/716) +- added documentation on how to merge API specs [#716](https://github.com/poem-web/poem/pull/716) - impl Type for std::time::Duration instead of only humantime::Duration [#713](https://github.com/poem-web/poem/pull/713) # [3.0.6] 2023-11-19 @@ -400,7 +400,7 @@ struct Obj { # [1.2.11] 2021-12-27 -- Remove the `OpenApi::combine` method, `OpenApiSerice::new` can be passed a tuple to combine multiple API objects. +- Remove the `OpenApi::combine` method, `OpenApiService::new` can be passed a tuple to combine multiple API objects. # [1.2.10] 2021-12-26