Skip to content

docs: fix typos #684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ minimum.

When an example must handle the possibility of errors, follow the error handling
templates in ["A note about error handling"][errors]. Examples always set up
error handling correctly and propagate errors with `?` (not `try!`, `urwrap`, or
error handling correctly and propagate errors with `?` (not `try!`, `unwrap`, or
`expect`). If there is no need for error handling in the example, prefer `main()`.

Avoid glob imports (`*`), even for preludes, so that users can see what
Expand Down
2 changes: 1 addition & 1 deletion ci/test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${CONTENT_TESTS:-}" == 1 ]]; then
exit 1
fi
echo "Checking local links:"
# failing local link test is a hard error as there should be no false possitives
# failing local link test is a hard error as there should be no false positives
link-checker --no-external ./book/

echo "Checking external links:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![num-badge]][num] [![cat-science-badge]][cat-science]

Complex numbers have a range of interesting properties when it comes to
how they interact with other mathematical functions, most notibly the family
how they interact with other mathematical functions, most notably the family
of sine functions as well as the number e. To use these functions with
complex numbers, the Complex type has a few built in
functions, all of which can be found here: [`num::complex::Complex`].
Expand Down
2 changes: 1 addition & 1 deletion src/web/clients/api/rest-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Queries GitHub [stargazers API v3](https://developer.github.com/v3/activity/star
with [`reqwest::get`] to get list of all users who have marked a GitHub project with a star.
[`reqwest::Response`] is deserialized with [`Response::json`] into `User` objects implementing [`serde::Deserialize`].

[tokio::main] is used to set up the async executor and the process waits for [`reqwet::get`] to complete before
[tokio::main] is used to set up the async executor and the process waits for [`reqwest::get`] to complete before
processing the response into User instances.

```rust,edition2018,no_run
Expand Down
2 changes: 1 addition & 1 deletion src/web/clients/download/partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Uses [`reqwest::blocking::Client::head`] to get the [Content-Length] of the response.

The code then uses [`reqwest::blocking::Client::get`] to download the content in
chunks of 10240 bytes, while printing progress messages. This exmple uses the synchronous
chunks of 10240 bytes, while printing progress messages. This example uses the synchronous
reqwest module. The [Range] header specifies the chunk size and position.

The Range header is defined in [RFC7233][HTTP Range RFC7233].
Expand Down
4 changes: 2 additions & 2 deletions src/web/mime/request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![reqwest-badge]][reqwest] [![mime-badge]][mime] [![cat-net-badge]][cat-net] [![cat-encoding-badge]][cat-encoding]

When receiving a HTTP reponse from `reqwest` the [MIME type] or media type may be
When receiving a HTTP response from `reqwest` the [MIME type] or media type may be
found in the [Content-Type] header. [`reqwest::header::HeaderMap::get`] retrieves
the header as a [`reqwest::header::HeaderValue`], which can be converted to a
string. The `mime` crate can then parse that, yielding a [`mime::Mime`] value.
Expand Down Expand Up @@ -44,7 +44,7 @@ async fn main() -> Result<()> {
_ => "neither text nor image",
};

println!("The reponse contains {}.", media_type);
println!("The response contains {}.", media_type);
}
};

Expand Down