From 96bb608e3af034771f9731e47758e45794346068 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DanMcNab@users.noreply.github.com> Date: Thu, 1 Mar 2018 11:22:30 +0000 Subject: [PATCH] Correct various spellings and typos in the guide. Note that there are also some changes to the release notes included. --- site/guide/getting-started.md | 2 +- site/guide/pastebin.md | 2 +- site/guide/requests.md | 4 ++-- site/news/2017-02-06-version-0.2.md | 2 +- site/news/2017-07-14-version-0.3.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/guide/getting-started.md b/site/guide/getting-started.md index fecfe454..61a387ab 100644 --- a/site/guide/getting-started.md +++ b/site/guide/getting-started.md @@ -31,7 +31,7 @@ rustup override set nightly ### Minimum Nightly Rocket always requires the _latest_ version of Rust nightly. If your Rocket -application suddently stops building, ensure you're using the latest version of +application suddenly stops building, ensure you're using the latest version of Rust nightly and Rocket by updating your toolchain and dependencies with: ```sh diff --git a/site/guide/pastebin.md b/site/guide/pastebin.md index 1711c174..3e060b8c 100644 --- a/site/guide/pastebin.md +++ b/site/guide/pastebin.md @@ -278,7 +278,7 @@ ls upload # ensure the upload is there cat upload/* # ensure that contents are correct ``` -Note that since we haven't created a `GET /` route, visting the returned URL +Note that since we haven't created a `GET /` route, visiting the returned URL will result in a **404**. We'll fix that now. ## Retrieving Pastes diff --git a/site/guide/requests.md b/site/guide/requests.md index 01e78a1f..4ca9ba48 100644 --- a/site/guide/requests.md +++ b/site/guide/requests.md @@ -101,7 +101,7 @@ fn hello(name: String, age: u8, cool: bool) -> String { ### Raw Strings You may have noticed an unfamiliar [`RawStr`] type in the code example above. -This is a special type, provided by Rocket, that represents an unsanitzed, +This is a special type, provided by Rocket, that represents an unsanitized, unvalidated, and undecoded raw string from an HTTP message. It exists to separate validated string inputs, represented by types such as `String`, `&str`, and `Cow` types, from unvalidated inputs, represented by `&RawStr`. It @@ -109,7 +109,7 @@ provides helpful methods to convert the unvalidated string into a validated one. Because `&RawStr` implements [`FromParam`], it can be used as the type of a dynamic segment, as in the example above. When used as the type of a dynamic -segment, a `RawStr` points to a potentially undecoded string. By constrast, a +segment, a `RawStr` points to a potentially undecoded string. By contrast, a `String` is guaranteed to be decoded. Which you should use depends on whether you want direct but potentially unsafe access to the string (`&RawStr`), or safe access to the string at the cost of an allocation (`String`). diff --git a/site/news/2017-02-06-version-0.2.md b/site/news/2017-02-06-version-0.2.md index 2a4a83fd..0e2ebb93 100644 --- a/site/news/2017-02-06-version-0.2.md +++ b/site/news/2017-02-06-version-0.2.md @@ -22,7 +22,7 @@ and speed. Rocket makes it simple to write fast web applications without sacrificing flexibility or type safety. All with minimal code. > Rocket's so simple, you feel like you're doing something wrong. It's like if -> you're making fire with rocks and suddently someone gives you a lighter. Even +> you're making fire with rocks and suddenly someone gives you a lighter. Even > though you know the lighter makes fire, and does it even faster and better and > with a simple flick, the rock's still in your brain. > diff --git a/site/news/2017-07-14-version-0.3.md b/site/news/2017-07-14-version-0.3.md index 4ae81855..ff6b36cc 100644 --- a/site/news/2017-07-14-version-0.3.md +++ b/site/news/2017-07-14-version-0.3.md @@ -246,7 +246,7 @@ handle the breaking change in existing applications. In addition to new features, Rocket saw the following improvements: - * "Rocket" is now capatilized in the `Server` HTTP header. + * "Rocket" is now capitalized in the `Server` HTTP header. * The generic parameter of `rocket_contrib::Json` defaults to `json::Value`. * The trailing '...' in the launch message was removed. * The launch message prints regardless of the config environment.