Fix a whole bunch of typos.

Found via `codespell -L crate,ser,fo,noo,nd,cappable,pard,te,ans`.
This commit is contained in:
Kian-Meng Ang 2022-09-07 20:42:21 +08:00 committed by Sergio Benitez
parent 825dd04ec6
commit 06d255b52b
37 changed files with 52 additions and 52 deletions

View File

@ -2,4 +2,4 @@ blank_issues_enabled: true
contact_links: contact_links:
- name: Question - name: Question
url: https://github.com/SergioBenitez/Rocket/discussions url: https://github.com/SergioBenitez/Rocket/discussions
about: Please ask questions or raise indefinite concerns on Dicussions about: Please ask questions or raise indefinite concerns on Discussions

View File

@ -166,7 +166,7 @@ pub struct Initializer<D: Database>(Option<&'static str>, PhantomData<fn() -> D>
/// status `InternalServerError`. A [`Sentinel`] guards this condition, and so /// status `InternalServerError`. A [`Sentinel`] guards this condition, and so
/// this type of failure is unlikely to occur. A `None` error is returned. /// this type of failure is unlikely to occur. A `None` error is returned.
/// * If a connection is not available within `connect_timeout` seconds or /// * If a connection is not available within `connect_timeout` seconds or
/// another error occurs, the gaurd _fails_ with status `ServiceUnavailable` /// another error occurs, the guard _fails_ with status `ServiceUnavailable`
/// and the error is returned in `Some`. /// and the error is returned in `Some`.
/// ///
/// ## Deref /// ## Deref

View File

@ -5,10 +5,10 @@ use std::fmt;
/// guard. /// guard.
#[derive(Debug)] #[derive(Debug)]
pub enum Error<A, B = A> { pub enum Error<A, B = A> {
/// An error that occured during database/pool initialization. /// An error that occurred during database/pool initialization.
Init(A), Init(A),
/// An error that ocurred while retrieving a connection from the pool. /// An error that occurred while retrieving a connection from the pool.
Get(B), Get(B),
/// A [`Figment`](crate::figment::Figment) configuration error. /// A [`Figment`](crate::figment::Figment) configuration error.

View File

@ -191,7 +191,7 @@
//! //!
//! ## Driver Defaults //! ## Driver Defaults
//! //!
//! Some drivers provide configuration defaults different from the underyling //! Some drivers provide configuration defaults different from the underlying
//! database's defaults. A best-effort attempt is made to document those //! database's defaults. A best-effort attempt is made to document those
//! differences below: //! differences below:
//! //!
@ -216,7 +216,7 @@
//! //!
//! # Extending //! # Extending
//! //!
//! Any database driver can implement support for this libary by implementing //! Any database driver can implement support for this library by implementing
//! the [`Pool`] trait. //! the [`Pool`] trait.
#![doc(html_root_url = "https://api.rocket.rs/master/rocket_db_pools")] #![doc(html_root_url = "https://api.rocket.rs/master/rocket_db_pools")]

View File

@ -98,7 +98,7 @@ use {std::time::Duration, crate::{Error, Config}};
/// // `InitError` to `Error<InitError, _>` with `Error::Init`. /// // `InitError` to `Error<InitError, _>` with `Error::Init`.
/// let pool = MyPool::new(config).map_err(Error::Init)?; /// let pool = MyPool::new(config).map_err(Error::Init)?;
/// ///
/// // Return the fully intialized pool. /// // Return the fully initialized pool.
/// Ok(pool) /// Ok(pool)
/// } /// }
/// ///

View File

@ -273,7 +273,7 @@ fn sentinels_expr(route: &Route) -> TokenStream {
// * returns `false` for the parent. by 1) it will return false for // * returns `false` for the parent. by 1) it will return false for
// _all_ parents of the type, so no node in the graph can consider, // _all_ parents of the type, so no node in the graph can consider,
// directly or indirectly, `T` to be a child, and thus there are no // directly or indirectly, `T` to be a child, and thus there are no
// broken links; the thereom holds // broken links; the theorem holds
// * returns `true` for the parent, and so the type has a parent, and // * returns `true` for the parent, and so the type has a parent, and
// the theorem holds. // the theorem holds.
// 3. these are all the cases. QED. // 3. these are all the cases. QED.

View File

@ -53,7 +53,7 @@ pub fn uri_macro(input: proc_macro::TokenStream) -> TokenStream {
pub fn uri_internal_macro(input: proc_macro::TokenStream) -> TokenStream { pub fn uri_internal_macro(input: proc_macro::TokenStream) -> TokenStream {
// TODO: Ideally we would generate a perfect `Origin::ROOT` so that we don't // TODO: Ideally we would generate a perfect `Origin::ROOT` so that we don't
// assist in propoagate further errors. Alas, we can't set the span to the // assist in propagating further errors. Alas, we can't set the span to the
// invocation of `uri!` without access to `span.parent()`, and // invocation of `uri!` without access to `span.parent()`, and
// `Span::call_site()` here points to the `#[route]`, immediate caller, // `Span::call_site()` here points to the `#[route]`, immediate caller,
// generating a rather confusing error message when there's a type-mismatch. // generating a rather confusing error message when there's a type-mismatch.

View File

@ -1230,7 +1230,7 @@ pub fn catchers(input: TokenStream) -> TokenStream {
/// A URI to a route name `foo` is generated using `uri!(foo(v1, v2, v3))` or /// A URI to a route name `foo` is generated using `uri!(foo(v1, v2, v3))` or
/// `uri!(foo(a = v1, b = v2, c = v3))`, where `v1`, `v2`, `v3` are the values /// `uri!(foo(a = v1, b = v2, c = v3))`, where `v1`, `v2`, `v3` are the values
/// to fill in for route parameters named `a`, `b`, and `c`. If the named /// to fill in for route parameters named `a`, `b`, and `c`. If the named
/// parameter sytnax is used (`a = v1`, etc.), parameters can appear in any /// parameter syntax is used (`a = v1`, etc.), parameters can appear in any
/// order. /// order.
/// ///
/// More concretely, for the route `person` defined below: /// More concretely, for the route `person` defined below:

View File

@ -147,7 +147,7 @@ macro_rules! parse_flexible {
($($short:expr => $name:ident,)*) => ( ($($short:expr => $name:ident,)*) => (
docify!([ docify!([
Flexibly parses @code{name} into a @code{ContentType}. The parse is Flexibly parses @code{name} into a @code{ContentType}. The parse is
@[_flexible_] because, in addition to stricly correct content types, it @[_flexible_] because, in addition to strictly correct content types, it
recognizes the following shorthands: recognizes the following shorthands:
@nl @nl

View File

@ -214,7 +214,7 @@ macro_rules! parse_flexible {
($($short:expr => $name:ident,)*) => ( ($($short:expr => $name:ident,)*) => (
docify!([ docify!([
Flexibly parses @code{name} into a @code{MediaType}. The parse is Flexibly parses @code{name} into a @code{MediaType}. The parse is
@[_flexible_] because, in addition to stricly correct media types, it @[_flexible_] because, in addition to strictly correct media types, it
recognizes the following shorthands: recognizes the following shorthands:
@nl @nl

View File

@ -36,7 +36,7 @@ impl AsPtr for [u8] {
pub enum Indexed<'a, T: ?Sized + ToOwned> { pub enum Indexed<'a, T: ?Sized + ToOwned> {
/// The start and end index of a string. /// The start and end index of a string.
Indexed(usize, usize), Indexed(usize, usize),
/// A conrete string. /// A concrete string.
Concrete(Cow<'a, T>) Concrete(Cow<'a, T>)
} }

View File

@ -264,7 +264,7 @@ impl<'a> Certificate<'a> {
self.inner().version.0 self.inner().version.0
} }
/// Returns the subject (a "DN" or "Distinguised Name") of the X.509 /// Returns the subject (a "DN" or "Distinguished Name") of the X.509
/// certificate. /// certificate.
/// ///
/// # Example /// # Example
@ -285,7 +285,7 @@ impl<'a> Certificate<'a> {
Name::ref_cast(&self.inner().subject) Name::ref_cast(&self.inner().subject)
} }
/// Returns the issuer (a "DN" or "Distinguised Name") of the X.509 /// Returns the issuer (a "DN" or "Distinguished Name") of the X.509
/// certificate. /// certificate.
/// ///
/// # Example /// # Example
@ -446,7 +446,7 @@ impl<'a> Name<'a> {
/// `self`. /// `self`.
/// ///
/// Note that email addresses need not be UTF-8 strings, or strings at all. /// Note that email addresses need not be UTF-8 strings, or strings at all.
/// This method filters the email addresss in `self` to those that are. Use /// This method filters the email address in `self` to those that are. Use
/// the raw [`iter_email()`](#method.iter_email) to iterate over all value /// the raw [`iter_email()`](#method.iter_email) to iterate over all value
/// types. /// types.
/// ///

View File

@ -10,7 +10,7 @@ use crate::uri::{Absolute, Authority};
/// In HTTP/2 and HTTP/3, this information is instead communicated via the /// In HTTP/2 and HTTP/3, this information is instead communicated via the
/// `:authority` and `:port` pseudo-header request fields. It is a /// `:authority` and `:port` pseudo-header request fields. It is a
/// client-controlled value via which the client communicates to the server the /// client-controlled value via which the client communicates to the server the
/// domain name and port it is attemping to communicate with. The following /// domain name and port it is attempting to communicate with. The following
/// diagram illustrates the syntactic structure of a `Host`: /// diagram illustrates the syntactic structure of a `Host`:
/// ///
/// ```text /// ```text
@ -113,7 +113,7 @@ impl<'a> Host<'a> {
/// Parses the string `string` into a `Host`. Parsing will never allocate. /// Parses the string `string` into a `Host`. Parsing will never allocate.
/// Returns an `Error` if `string` is not a valid authority URI, meaning /// Returns an `Error` if `string` is not a valid authority URI, meaning
/// that this parser accepts a `user_info` part for compatability but /// that this parser accepts a `user_info` part for compatibility but
/// discards it. /// discards it.
/// ///
/// # Example /// # Example
@ -156,7 +156,7 @@ impl<'a> Host<'a> {
/// This method should be used instead of [`Host::parse()`] when the source /// This method should be used instead of [`Host::parse()`] when the source
/// is already a `String`. Returns an `Error` if `string` is not a valid /// is already a `String`. Returns an `Error` if `string` is not a valid
/// authority URI, meaning that this parser accepts a `user_info` part for /// authority URI, meaning that this parser accepts a `user_info` part for
/// compatability but discards it. /// compatibility but discards it.
/// ///
/// # Example /// # Example
/// ///

View File

@ -409,7 +409,7 @@ impl<'a> Reference<'a> {
self.path = Data::new(path.into()); self.path = Data::new(path.into());
} }
/// Returns the conrete path and query. /// Returns the concrete path and query.
pub(crate) fn with_query_fragment_of(mut self, other: Reference<'a>) -> Self { pub(crate) fn with_query_fragment_of(mut self, other: Reference<'a>) -> Self {
if let Some(query) = other.query { if let Some(query) = other.query {
if self.query().is_none() { if self.query().is_none() {

View File

@ -423,7 +423,7 @@ impl Config {
launch_meta_!("log level: {}", bold(self.log_level)); launch_meta_!("log level: {}", bold(self.log_level));
launch_meta_!("cli colors: {}", bold(&self.cli_colors)); launch_meta_!("cli colors: {}", bold(&self.cli_colors));
// Check for now depreacted config values. // Check for now deprecated config values.
for (key, replacement) in Self::DEPRECATED_KEYS { for (key, replacement) in Self::DEPRECATED_KEYS {
if let Some(md) = figment.find_metadata(key) { if let Some(md) = figment.find_metadata(key) {
warn!("found value for deprecated config key `{}`", Paint::white(key)); warn!("found value for deprecated config key `{}`", Paint::white(key));

View File

@ -165,7 +165,7 @@ impl fmt::Display for Sig {
/// # } /// # }
/// ``` /// ```
/// ///
/// Or, as with all configuration options, programatically: /// Or, as with all configuration options, programmatically:
/// ///
/// ```rust /// ```rust
/// # use rocket::figment::{Figment, providers::{Format, Toml}}; /// # use rocket::figment::{Figment, providers::{Format, Toml}};

View File

@ -503,7 +503,7 @@ impl TlsConfig {
/// let tls_config = TlsConfig::from_bytes(certs_buf, key_buf); /// let tls_config = TlsConfig::from_bytes(certs_buf, key_buf);
/// assert!(!tls_config.prefer_server_cipher_order()); /// assert!(!tls_config.prefer_server_cipher_order());
/// ///
/// // Which can be overriden with the eponymous builder method. /// // Which can be overridden with the eponymous builder method.
/// let tls_config = TlsConfig::from_bytes(certs_buf, key_buf) /// let tls_config = TlsConfig::from_bytes(certs_buf, key_buf)
/// .with_preferred_server_cipher_order(true); /// .with_preferred_server_cipher_order(true);
/// ///

View File

@ -12,7 +12,7 @@ use crate::{Rocket, Orbit};
/// An error that occurs during launch. /// An error that occurs during launch.
/// ///
/// An `Error` is returned by [`launch()`](Rocket::launch()) when launching an /// An `Error` is returned by [`launch()`](Rocket::launch()) when launching an
/// application fails or, more rarely, when the runtime fails after lauching. /// application fails or, more rarely, when the runtime fails after launching.
/// ///
/// # Panics /// # Panics
/// ///

View File

@ -482,7 +482,7 @@ pub trait Fairing: Send + Sync + Any + 'static {
/// ///
/// This method is called just after launching the application if /// This method is called just after launching the application if
/// `Kind::Liftoff` is in the `kind` field of the `Info` structure for this /// `Kind::Liftoff` is in the `kind` field of the `Info` structure for this
/// fairing. The `Rocket` parameter corresponds to the lauched application. /// fairing. The `Rocket` parameter corresponds to the launched application.
/// ///
/// ## Default Implementation /// ## Default Implementation
/// ///

View File

@ -247,7 +247,7 @@ impl<'v> Context<'v> {
/// whose associated field name is _exactly_ `name` to be an error for the /// whose associated field name is _exactly_ `name` to be an error for the
/// field named `name`. This is _not_ what is typically desired as it /// field named `name`. This is _not_ what is typically desired as it
/// ignores errors that occur in the parent which will result in missing /// ignores errors that occur in the parent which will result in missing
/// errors associated with its chilren. Use [`Context::field_errors()`] in /// errors associated with its children. Use [`Context::field_errors()`] in
/// almost all cases. /// almost all cases.
/// ///
/// Lookup is case-sensitive but key-separator (`.` or `[]`) insensitive. /// Lookup is case-sensitive but key-separator (`.` or `[]`) insensitive.
@ -265,7 +265,7 @@ impl<'v> Context<'v> {
/// let id = form.context.exact_field_errors("id"); /// let id = form.context.exact_field_errors("id");
/// ///
/// // Get all errors exactly for `foo.bar`. If `foo` failed, we will /// // Get all errors exactly for `foo.bar`. If `foo` failed, we will
/// // this will return no erorrs. Use `Context::field_errors()`. /// // this will return no errors. Use `Context::field_errors()`.
/// let foo_bar = form.context.exact_field_errors("foo.bar"); /// let foo_bar = form.context.exact_field_errors("foo.bar");
/// } /// }
/// ``` /// ```

View File

@ -138,7 +138,7 @@ pub struct Error<'v> {
pub value: Option<Cow<'v, str>>, pub value: Option<Cow<'v, str>>,
/// The kind of error that occurred. /// The kind of error that occurred.
pub kind: ErrorKind<'v>, pub kind: ErrorKind<'v>,
/// The entitiy that caused the error. /// The entity that caused the error.
pub entity: Entity, pub entity: Entity,
} }

View File

@ -88,7 +88,7 @@ impl<'v> ValueField<'v> {
ValueField::from(("", value)) ValueField::from(("", value))
} }
/// Shift the `name` of `self` and return `self` with the shfited `name`. /// Shift the `name` of `self` and return `self` with the shifted `name`.
/// ///
/// See [`NameView::shift()`] for the details on name "shifting". /// See [`NameView::shift()`] for the details on name "shifting".
/// ///
@ -140,7 +140,7 @@ impl<'v> ValueField<'v> {
.with_entity(Entity::ValueField) .with_entity(Entity::ValueField)
} }
/// Creates a complete mising value field [`Error`] from `self`. /// Creates a complete missing value field [`Error`] from `self`.
/// ///
/// The error will have the following properties: /// The error will have the following properties:
/// * `kind`: [`ErrorKind::Missing`] /// * `kind`: [`ErrorKind::Missing`]

View File

@ -411,7 +411,7 @@ use crate::http::uncased::AsUncased;
/// } /// }
/// ``` /// ```
/// ///
/// The lifetime `'r` correponds to the lifetime of the request. /// The lifetime `'r` corresponds to the lifetime of the request.
/// ///
/// ## A More Involved Example /// ## A More Involved Example
/// ///

View File

@ -807,7 +807,7 @@ pub fn ext<'v>(file: &TempFile<'_>, r#type: ContentType) -> Result<'v, ()> {
/// With validator: succeeds when an arbitrary function or closure does. /// With validator: succeeds when an arbitrary function or closure does.
/// ///
/// This is the most generic validator and, for readability, should only be used /// This is the most generic validator and, for readability, should only be used
/// when a more case-specific option does not exist. It succeeds excactly when /// when a more case-specific option does not exist. It succeeds exactly when
/// `f` returns `true` and fails otherwise. /// `f` returns `true` and fails otherwise.
/// ///
/// On failure, returns a validation error with the message `msg`. /// On failure, returns a validation error with the message `msg`.
@ -858,7 +858,7 @@ pub fn with<'v, V, F, M>(value: V, f: F, msg: M) -> Result<'v, ()>
/// _Try_ With validator: succeeds when an arbitrary function or closure does. /// _Try_ With validator: succeeds when an arbitrary function or closure does.
/// ///
/// Along with [`with`], this is the most generic validator. It succeeds /// Along with [`with`], this is the most generic validator. It succeeds
/// excactly when `f` returns `Ok` and fails otherwise. /// exactly when `f` returns `Ok` and fails otherwise.
/// ///
/// On failure, returns a validation error with the message in the `Err` /// On failure, returns a validation error with the message in the `Err`
/// variant converted into a string. /// variant converted into a string.

View File

@ -128,7 +128,7 @@ impl<'v> TempFile<'v> {
/// ///
/// # Cross-Device Persistence /// # Cross-Device Persistence
/// ///
/// Attemping to persist a temporary file across logical devices (or mount /// Attempting to persist a temporary file across logical devices (or mount
/// points) will result in an error. This is a limitation of the underlying /// points) will result in an error. This is a limitation of the underlying
/// OS. Your options are thus: /// OS. Your options are thus:
/// ///

View File

@ -2,7 +2,7 @@
//! //!
//! This module contains the `blocking` variant of the `local` API: it can be //! This module contains the `blocking` variant of the `local` API: it can be
//! used in Rust's synchronous `#[test]` harness. This is accomplished by //! used in Rust's synchronous `#[test]` harness. This is accomplished by
//! starting and running an interal asynchronous Runtime as needed. For the //! starting and running an internal asynchronous Runtime as needed. For the
//! asynchronous variant, see [`asynchronous`](super::asynchronous). //! asynchronous variant, see [`asynchronous`](super::asynchronous).
//! //!
//! See the [top-level documentation](super) for more usage details. //! See the [top-level documentation](super) for more usage details.

View File

@ -415,7 +415,7 @@ impl<'r> Request<'r> {
/// # let mut req = c.get("/"); /// # let mut req = c.get("/");
/// # let request = req.inner_mut(); /// # let request = req.inner_mut();
/// ///
/// // starting without an "X-Real-IP" header or remote addresss /// // starting without an "X-Real-IP" header or remote address
/// assert!(request.client_ip().is_none()); /// assert!(request.client_ip().is_none());
/// ///
/// // add a remote address; this is done by Rocket automatically /// // add a remote address; this is done by Rocket automatically

View File

@ -54,7 +54,7 @@ use crate::http::ContentType;
/// appears only in the raw server-sent event data stream and is inaccessible by /// appears only in the raw server-sent event data stream and is inaccessible by
/// most clients. This includes JavaScript's `EventSource`. As such, they serve /// most clients. This includes JavaScript's `EventSource`. As such, they serve
/// little utility beyond debugging a raw data stream and keeping a connection /// little utility beyond debugging a raw data stream and keeping a connection
/// alive. See [hearbeat](struct@EventStream#heartbeat) for information on /// alive. See [heartbeat](struct@EventStream#heartbeat) for information on
/// Rocket's `EventStream` keep-alive. /// Rocket's `EventStream` keep-alive.
/// ///
/// # Fields /// # Fields

View File

@ -66,7 +66,7 @@ use crate::log::PaintExt;
/// } /// }
/// ``` /// ```
/// ///
/// This generates a `main` funcion with an `async` runtime that runs the /// This generates a `main` function with an `async` runtime that runs the
/// returned `Rocket` instance. /// returned `Rocket` instance.
/// ///
/// * **Manual Launching** /// * **Manual Launching**
@ -197,7 +197,7 @@ impl Rocket<Build> {
/// A [`Figment`] generated from the current `provider` can _always_ be /// A [`Figment`] generated from the current `provider` can _always_ be
/// retrieved via [`Rocket::figment()`]. However, because the provider can /// retrieved via [`Rocket::figment()`]. However, because the provider can
/// be changed at any point prior to ignition, a [`Config`] can only be /// be changed at any point prior to ignition, a [`Config`] can only be
/// retrieved in the ignite or orbit phases, or by manually extracing one /// retrieved in the ignite or orbit phases, or by manually extracting one
/// from a particular figment. /// from a particular figment.
/// ///
/// # Example /// # Example
@ -442,7 +442,7 @@ impl Rocket<Build> {
} }
/// Attaches a fairing to this instance of Rocket. No fairings are eagerly /// Attaches a fairing to this instance of Rocket. No fairings are eagerly
/// excuted; fairings are executed at their appropriate time. /// executed; fairings are executed at their appropriate time.
/// ///
/// If the attached fairing is _fungible_ and a fairing of the same name /// If the attached fairing is _fungible_ and a fairing of the same name
/// already exists, this fairing replaces it. /// already exists, this fairing replaces it.

View File

@ -343,7 +343,7 @@ impl Rocket<Orbit> {
// If it fails and it's not a 500, try the 500 catcher. // If it fails and it's not a 500, try the 500 catcher.
if status != Status::InternalServerError { if status != Status::InternalServerError {
error_!("Catcher failed. Attemping 500 error catcher."); error_!("Catcher failed. Attempting 500 error catcher.");
status = Status::InternalServerError; status = Status::InternalServerError;
if let Ok(r) = self.invoke_catcher(status, req).await { if let Ok(r) = self.invoke_catcher(status, req).await {
return r; return r;
@ -465,7 +465,7 @@ impl Rocket<Orbit> {
.serve(hyper::service::make_service_fn(service_fn)) .serve(hyper::service::make_service_fn(service_fn))
.with_graceful_shutdown(shutdown.clone()); .with_graceful_shutdown(shutdown.clone());
// This deserves some exaplanation. // This deserves some explanation.
// //
// This is largely to deal with Hyper's dreadful and largely nonexistent // This is largely to deal with Hyper's dreadful and largely nonexistent
// handling of shutdown, in general, nevermind graceful. // handling of shutdown, in general, nevermind graceful.

View File

@ -461,7 +461,7 @@ impl From<&Prefetch> for Header<'static> {
/// control exactly _which_ (if any) origins may access or request access to /// control exactly _which_ (if any) origins may access or request access to
/// browser features. /// browser features.
/// ///
/// Features are enabled via the [`Permission::allowed()`] contructor and /// Features are enabled via the [`Permission::allowed()`] constructor and
/// chainable [`allow()`](Self::allow()) build method. Features can be blocked /// chainable [`allow()`](Self::allow()) build method. Features can be blocked
/// via the [`Permission::blocked()`] and chainable [`block()`](Self::block()) /// via the [`Permission::blocked()`] and chainable [`block()`](Self::block())
/// builder method. /// builder method.
@ -553,7 +553,7 @@ impl Permission {
/// be a single [`Allow`], a slice (`[Allow]` or `&[Allow]`), or a vector /// be a single [`Allow`], a slice (`[Allow]` or `&[Allow]`), or a vector
/// (`Vec<Allow>`). /// (`Vec<Allow>`).
/// ///
/// This policy supercedes any previous policy set for `feature`. /// This policy supersedes any previous policy set for `feature`.
/// ///
/// If `allow` is empty, the use of the feature is blocked unless another /// If `allow` is empty, the use of the feature is blocked unless another
/// call to `allow()` allows it. If `allow` contains [`Allow::Any`], the /// call to `allow()` allows it. If `allow` contains [`Allow::Any`], the
@ -597,7 +597,7 @@ impl Permission {
self self
} }
/// Blocks `feature`. This policy supercedes any previous policy set for /// Blocks `feature`. This policy supersedes any previous policy set for
/// `feature`. /// `feature`.
/// ///
/// # Example /// # Example

View File

@ -14,7 +14,7 @@ fn test(base: &str, stage: AdHoc) {
// Number of posts we're going to create/read/delete. // Number of posts we're going to create/read/delete.
const N: usize = 20; const N: usize = 20;
// NOTE: If we had more than one test running concurently that dispatches // NOTE: If we had more than one test running concurrently that dispatches
// DB-accessing requests, we'd need transactions or to serialize all tests. // DB-accessing requests, we'd need transactions or to serialize all tests.
let client = Client::tracked(rocket::build().attach(stage)).unwrap(); let client = Client::tracked(rocket::build().attach(stage)).unwrap();

View File

@ -117,7 +117,7 @@ rustup override set stable
Using the stable release channel ensures that _no_ breakages will occur when Using the stable release channel ensures that _no_ breakages will occur when
upgrading your Rust compiler or Rocket. That being said, Rocket continues to upgrading your Rust compiler or Rocket. That being said, Rocket continues to
take advantage of features only present in the nightly channel. As a result, the take advantage of features only present in the nightly channel. As a result, the
development experience will be superior on nightly for the forseeable future. development experience will be superior on nightly for the foreseeable future.
For example, compiler diagnostics on `nightly` are more detailed and accurate: For example, compiler diagnostics on `nightly` are more detailed and accurate:
<details> <details>
@ -363,7 +363,7 @@ most important of these changes here. All users _must_:
* Replace `ROCKET_ENV` environment variable use with `ROCKET_PROFILE`. * Replace `ROCKET_ENV` environment variable use with `ROCKET_PROFILE`.
* Replace `ROCKET_LOG` environment variable with `ROCKET_LOG_LEVEL`. * Replace `ROCKET_LOG` environment variable with `ROCKET_LOG_LEVEL`.
* Use only IP addreses for the `address` configuration parameter. * Use only IP addresses for the `address` configuration parameter.
* Replace the `dev` or `development` profile with `debug`. * Replace the `dev` or `development` profile with `debug`.
* Note that the `stage`, `staging`, `prod`, and `production` profiles carry no * Note that the `stage`, `staging`, `prod`, and `production` profiles carry no
special meaning in v0.5. special meaning in v0.5.

View File

@ -276,7 +276,7 @@ Can I, and if so how, do I use WebSockets?
Rocket doesn't support WebSockets quite yet. We're [working on it]. Rocket doesn't support WebSockets quite yet. We're [working on it].
That being said, Rocket _does_ suport [Server-Sent Events], which allows for That being said, Rocket _does_ support [Server-Sent Events], which allows for
real-time _unidirectional_ communication from the server to the client. This is real-time _unidirectional_ communication from the server to the client. This is
often sufficient for many of the applications that WebSockets are typically used often sufficient for many of the applications that WebSockets are typically used
for. For instance, the [chat example] uses SSE to implement a real-time, for. For instance, the [chat example] uses SSE to implement a real-time,

View File

@ -73,7 +73,7 @@ order in which fairings are attached may be significant.
### Callbacks ### Callbacks
There are five events for which Rocket issues fairing callbacks. Each of these There are five events for which Rocket issues fairing callbacks. Each of these
events is breifly described below and in details in the [`Fairing`] trait docs: events is briefly described below and in details in the [`Fairing`] trait docs:
* **Ignite (`on_ignite`)** * **Ignite (`on_ignite`)**

View File

@ -128,7 +128,7 @@ text = '''
''' '''
############################################################################### ###############################################################################
# Buttom features: displayed above the footer. # Bottom features: displayed above the footer.
############################################################################### ###############################################################################
[[bottom_features]] [[bottom_features]]

View File

@ -296,7 +296,7 @@ enum Error {
} }
``` ```
A value of this type can then be returned from a hander or used as part of A value of this type can then be returned from a handler or used as part of
wrapping responders: wrapping responders:
```rust ```rust