diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 4bd24de5..506d5a1d 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,4 +2,4 @@ blank_issues_enabled: true contact_links: - name: Question 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 diff --git a/contrib/db_pools/lib/src/database.rs b/contrib/db_pools/lib/src/database.rs index 61b10ced..fc7ec870 100644 --- a/contrib/db_pools/lib/src/database.rs +++ b/contrib/db_pools/lib/src/database.rs @@ -166,7 +166,7 @@ pub struct Initializer(Option<&'static str>, PhantomData D> /// status `InternalServerError`. A [`Sentinel`] guards this condition, and so /// this type of failure is unlikely to occur. A `None` error is returned. /// * 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`. /// /// ## Deref diff --git a/contrib/db_pools/lib/src/error.rs b/contrib/db_pools/lib/src/error.rs index 69bae106..891fc76d 100644 --- a/contrib/db_pools/lib/src/error.rs +++ b/contrib/db_pools/lib/src/error.rs @@ -5,10 +5,10 @@ use std::fmt; /// guard. #[derive(Debug)] pub enum Error { - /// An error that occured during database/pool initialization. + /// An error that occurred during database/pool initialization. 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), /// A [`Figment`](crate::figment::Figment) configuration error. diff --git a/contrib/db_pools/lib/src/lib.rs b/contrib/db_pools/lib/src/lib.rs index bf8fc726..761bfae3 100644 --- a/contrib/db_pools/lib/src/lib.rs +++ b/contrib/db_pools/lib/src/lib.rs @@ -191,7 +191,7 @@ //! //! ## 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 //! differences below: //! @@ -216,7 +216,7 @@ //! //! # 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. #![doc(html_root_url = "https://api.rocket.rs/master/rocket_db_pools")] diff --git a/contrib/db_pools/lib/src/pool.rs b/contrib/db_pools/lib/src/pool.rs index 9f313eaa..d07a0f13 100644 --- a/contrib/db_pools/lib/src/pool.rs +++ b/contrib/db_pools/lib/src/pool.rs @@ -98,7 +98,7 @@ use {std::time::Duration, crate::{Error, Config}}; /// // `InitError` to `Error` with `Error::Init`. /// let pool = MyPool::new(config).map_err(Error::Init)?; /// -/// // Return the fully intialized pool. +/// // Return the fully initialized pool. /// Ok(pool) /// } /// diff --git a/core/codegen/src/attribute/route/mod.rs b/core/codegen/src/attribute/route/mod.rs index 1c2cf010..e92e5f8f 100644 --- a/core/codegen/src/attribute/route/mod.rs +++ b/core/codegen/src/attribute/route/mod.rs @@ -273,7 +273,7 @@ fn sentinels_expr(route: &Route) -> TokenStream { // * 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, // 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 // the theorem holds. // 3. these are all the cases. QED. diff --git a/core/codegen/src/bang/mod.rs b/core/codegen/src/bang/mod.rs index 5633f442..d27358eb 100644 --- a/core/codegen/src/bang/mod.rs +++ b/core/codegen/src/bang/mod.rs @@ -53,7 +53,7 @@ pub fn uri_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 - // 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 // `Span::call_site()` here points to the `#[route]`, immediate caller, // generating a rather confusing error message when there's a type-mismatch. diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index 1c336859..f610e346 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -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 /// `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 -/// 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. /// /// More concretely, for the route `person` defined below: diff --git a/core/http/src/header/content_type.rs b/core/http/src/header/content_type.rs index 8c218dc3..afa2ede2 100644 --- a/core/http/src/header/content_type.rs +++ b/core/http/src/header/content_type.rs @@ -147,7 +147,7 @@ macro_rules! parse_flexible { ($($short:expr => $name:ident,)*) => ( docify!([ 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: @nl diff --git a/core/http/src/header/media_type.rs b/core/http/src/header/media_type.rs index 11332f4f..e51fea81 100644 --- a/core/http/src/header/media_type.rs +++ b/core/http/src/header/media_type.rs @@ -214,7 +214,7 @@ macro_rules! parse_flexible { ($($short:expr => $name:ident,)*) => ( docify!([ 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: @nl diff --git a/core/http/src/parse/indexed.rs b/core/http/src/parse/indexed.rs index 185a1168..d488e036 100644 --- a/core/http/src/parse/indexed.rs +++ b/core/http/src/parse/indexed.rs @@ -36,7 +36,7 @@ impl AsPtr for [u8] { pub enum Indexed<'a, T: ?Sized + ToOwned> { /// The start and end index of a string. Indexed(usize, usize), - /// A conrete string. + /// A concrete string. Concrete(Cow<'a, T>) } diff --git a/core/http/src/tls/mtls.rs b/core/http/src/tls/mtls.rs index fd5480b9..2269a397 100644 --- a/core/http/src/tls/mtls.rs +++ b/core/http/src/tls/mtls.rs @@ -264,7 +264,7 @@ impl<'a> Certificate<'a> { 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. /// /// # Example @@ -285,7 +285,7 @@ impl<'a> Certificate<'a> { 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. /// /// # Example @@ -446,7 +446,7 @@ impl<'a> Name<'a> { /// `self`. /// /// 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 /// types. /// diff --git a/core/http/src/uri/host.rs b/core/http/src/uri/host.rs index fd1cac64..6c7807ff 100644 --- a/core/http/src/uri/host.rs +++ b/core/http/src/uri/host.rs @@ -10,7 +10,7 @@ use crate::uri::{Absolute, Authority}; /// In HTTP/2 and HTTP/3, this information is instead communicated via the /// `:authority` and `:port` pseudo-header request fields. It is a /// 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`: /// /// ```text @@ -113,7 +113,7 @@ impl<'a> Host<'a> { /// Parses the string `string` into a `Host`. Parsing will never allocate. /// 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. /// /// # Example @@ -156,7 +156,7 @@ impl<'a> Host<'a> { /// 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 /// authority URI, meaning that this parser accepts a `user_info` part for - /// compatability but discards it. + /// compatibility but discards it. /// /// # Example /// diff --git a/core/http/src/uri/reference.rs b/core/http/src/uri/reference.rs index a2592ee8..58eb06fd 100644 --- a/core/http/src/uri/reference.rs +++ b/core/http/src/uri/reference.rs @@ -409,7 +409,7 @@ impl<'a> Reference<'a> { 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 { if let Some(query) = other.query { if self.query().is_none() { diff --git a/core/lib/src/config/config.rs b/core/lib/src/config/config.rs index 2920a38c..75050bf6 100644 --- a/core/lib/src/config/config.rs +++ b/core/lib/src/config/config.rs @@ -423,7 +423,7 @@ impl Config { launch_meta_!("log level: {}", bold(self.log_level)); 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 { if let Some(md) = figment.find_metadata(key) { warn!("found value for deprecated config key `{}`", Paint::white(key)); diff --git a/core/lib/src/config/shutdown.rs b/core/lib/src/config/shutdown.rs index 05797e4f..e445ca24 100644 --- a/core/lib/src/config/shutdown.rs +++ b/core/lib/src/config/shutdown.rs @@ -165,7 +165,7 @@ impl fmt::Display for Sig { /// # } /// ``` /// -/// Or, as with all configuration options, programatically: +/// Or, as with all configuration options, programmatically: /// /// ```rust /// # use rocket::figment::{Figment, providers::{Format, Toml}}; diff --git a/core/lib/src/config/tls.rs b/core/lib/src/config/tls.rs index cc32d8fc..bdf8403d 100644 --- a/core/lib/src/config/tls.rs +++ b/core/lib/src/config/tls.rs @@ -503,7 +503,7 @@ impl TlsConfig { /// let tls_config = TlsConfig::from_bytes(certs_buf, key_buf); /// 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) /// .with_preferred_server_cipher_order(true); /// diff --git a/core/lib/src/error.rs b/core/lib/src/error.rs index 3c9d9048..0fcb91c4 100644 --- a/core/lib/src/error.rs +++ b/core/lib/src/error.rs @@ -12,7 +12,7 @@ use crate::{Rocket, Orbit}; /// An error that occurs during launch. /// /// 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 /// diff --git a/core/lib/src/fairing/mod.rs b/core/lib/src/fairing/mod.rs index 67d200ba..c8eb033a 100644 --- a/core/lib/src/fairing/mod.rs +++ b/core/lib/src/fairing/mod.rs @@ -482,7 +482,7 @@ pub trait Fairing: Send + Sync + Any + 'static { /// /// This method is called just after launching the application if /// `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 /// diff --git a/core/lib/src/form/context.rs b/core/lib/src/form/context.rs index 71790fbf..e18f8b0f 100644 --- a/core/lib/src/form/context.rs +++ b/core/lib/src/form/context.rs @@ -247,7 +247,7 @@ impl<'v> Context<'v> { /// 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 /// 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. /// /// 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"); /// /// // 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"); /// } /// ``` diff --git a/core/lib/src/form/error.rs b/core/lib/src/form/error.rs index 965eb2fc..8bc404f0 100644 --- a/core/lib/src/form/error.rs +++ b/core/lib/src/form/error.rs @@ -138,7 +138,7 @@ pub struct Error<'v> { pub value: Option>, /// The kind of error that occurred. pub kind: ErrorKind<'v>, - /// The entitiy that caused the error. + /// The entity that caused the error. pub entity: Entity, } diff --git a/core/lib/src/form/field.rs b/core/lib/src/form/field.rs index 19e1e9fb..98c157d6 100644 --- a/core/lib/src/form/field.rs +++ b/core/lib/src/form/field.rs @@ -88,7 +88,7 @@ impl<'v> ValueField<'v> { 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". /// @@ -140,7 +140,7 @@ impl<'v> ValueField<'v> { .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: /// * `kind`: [`ErrorKind::Missing`] diff --git a/core/lib/src/form/from_form.rs b/core/lib/src/form/from_form.rs index 626a1571..868d1d02 100644 --- a/core/lib/src/form/from_form.rs +++ b/core/lib/src/form/from_form.rs @@ -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 /// diff --git a/core/lib/src/form/validate.rs b/core/lib/src/form/validate.rs index c89af4e6..821589cb 100644 --- a/core/lib/src/form/validate.rs +++ b/core/lib/src/form/validate.rs @@ -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. /// /// 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. /// /// 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. /// /// 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` /// variant converted into a string. diff --git a/core/lib/src/fs/temp_file.rs b/core/lib/src/fs/temp_file.rs index 34bb3f34..437e4d20 100644 --- a/core/lib/src/fs/temp_file.rs +++ b/core/lib/src/fs/temp_file.rs @@ -128,7 +128,7 @@ impl<'v> TempFile<'v> { /// /// # 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 /// OS. Your options are thus: /// diff --git a/core/lib/src/local/blocking/mod.rs b/core/lib/src/local/blocking/mod.rs index 8195e697..ef55f376 100644 --- a/core/lib/src/local/blocking/mod.rs +++ b/core/lib/src/local/blocking/mod.rs @@ -2,7 +2,7 @@ //! //! This module contains the `blocking` variant of the `local` API: it can be //! 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). //! //! See the [top-level documentation](super) for more usage details. diff --git a/core/lib/src/request/request.rs b/core/lib/src/request/request.rs index 9acf73af..bf9121fe 100644 --- a/core/lib/src/request/request.rs +++ b/core/lib/src/request/request.rs @@ -415,7 +415,7 @@ impl<'r> Request<'r> { /// # let mut req = c.get("/"); /// # 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()); /// /// // add a remote address; this is done by Rocket automatically diff --git a/core/lib/src/response/stream/sse.rs b/core/lib/src/response/stream/sse.rs index bffa662c..f1d6ae00 100644 --- a/core/lib/src/response/stream/sse.rs +++ b/core/lib/src/response/stream/sse.rs @@ -54,7 +54,7 @@ use crate::http::ContentType; /// 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 /// 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. /// /// # Fields diff --git a/core/lib/src/rocket.rs b/core/lib/src/rocket.rs index 2c28f313..d498a5f2 100644 --- a/core/lib/src/rocket.rs +++ b/core/lib/src/rocket.rs @@ -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. /// /// * **Manual Launching** @@ -197,7 +197,7 @@ impl Rocket { /// A [`Figment`] generated from the current `provider` can _always_ be /// retrieved via [`Rocket::figment()`]. However, because the provider can /// 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. /// /// # Example @@ -442,7 +442,7 @@ impl Rocket { } /// 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 /// already exists, this fairing replaces it. diff --git a/core/lib/src/server.rs b/core/lib/src/server.rs index c2a62ca9..b84a6c80 100644 --- a/core/lib/src/server.rs +++ b/core/lib/src/server.rs @@ -343,7 +343,7 @@ impl Rocket { // If it fails and it's not a 500, try the 500 catcher. if status != Status::InternalServerError { - error_!("Catcher failed. Attemping 500 error catcher."); + error_!("Catcher failed. Attempting 500 error catcher."); status = Status::InternalServerError; if let Ok(r) = self.invoke_catcher(status, req).await { return r; @@ -465,7 +465,7 @@ impl Rocket { .serve(hyper::service::make_service_fn(service_fn)) .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 // handling of shutdown, in general, nevermind graceful. diff --git a/core/lib/src/shield/policy.rs b/core/lib/src/shield/policy.rs index 54827fbc..18280d46 100644 --- a/core/lib/src/shield/policy.rs +++ b/core/lib/src/shield/policy.rs @@ -461,7 +461,7 @@ impl From<&Prefetch> for Header<'static> { /// control exactly _which_ (if any) origins may access or request access to /// 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 /// via the [`Permission::blocked()`] and chainable [`block()`](Self::block()) /// builder method. @@ -553,7 +553,7 @@ impl Permission { /// be a single [`Allow`], a slice (`[Allow]` or `&[Allow]`), or a vector /// (`Vec`). /// - /// 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 /// call to `allow()` allows it. If `allow` contains [`Allow::Any`], the @@ -597,7 +597,7 @@ impl Permission { self } - /// Blocks `feature`. This policy supercedes any previous policy set for + /// Blocks `feature`. This policy supersedes any previous policy set for /// `feature`. /// /// # Example diff --git a/examples/databases/src/tests.rs b/examples/databases/src/tests.rs index 98457e7f..e2e6aeed 100644 --- a/examples/databases/src/tests.rs +++ b/examples/databases/src/tests.rs @@ -14,7 +14,7 @@ fn test(base: &str, stage: AdHoc) { // Number of posts we're going to create/read/delete. 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. let client = Client::tracked(rocket::build().attach(stage)).unwrap(); diff --git a/site/guide/01-upgrading.md b/site/guide/01-upgrading.md index d94fd087..b29ac4ee 100644 --- a/site/guide/01-upgrading.md +++ b/site/guide/01-upgrading.md @@ -117,7 +117,7 @@ rustup override set stable Using the stable release channel ensures that _no_ breakages will occur when 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 -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:
@@ -363,7 +363,7 @@ most important of these changes here. All users _must_: * Replace `ROCKET_ENV` environment variable use with `ROCKET_PROFILE`. * 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`. * Note that the `stage`, `staging`, `prod`, and `production` profiles carry no special meaning in v0.5. diff --git a/site/guide/12-faq.md b/site/guide/12-faq.md index 4b565f9a..b2bb5cb0 100644 --- a/site/guide/12-faq.md +++ b/site/guide/12-faq.md @@ -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]. -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 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, diff --git a/site/guide/7-fairings.md b/site/guide/7-fairings.md index f36e47d1..8c754f00 100644 --- a/site/guide/7-fairings.md +++ b/site/guide/7-fairings.md @@ -73,7 +73,7 @@ order in which fairings are attached may be significant. ### Callbacks 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`)** diff --git a/site/index.toml b/site/index.toml index e2d5ac38..01481181 100644 --- a/site/index.toml +++ b/site/index.toml @@ -128,7 +128,7 @@ text = ''' ''' ############################################################################### -# Buttom features: displayed above the footer. +# Bottom features: displayed above the footer. ############################################################################### [[bottom_features]] diff --git a/site/news/2018-12-08-version-0.4.md b/site/news/2018-12-08-version-0.4.md index 4eb606b8..4b53a13b 100644 --- a/site/news/2018-12-08-version-0.4.md +++ b/site/news/2018-12-08-version-0.4.md @@ -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: ```rust