From c7d8fa3bc131f185d944a3df29bd1eb8fdb501fa Mon Sep 17 00:00:00 2001 From: Michael McDonnell Date: Tue, 1 Sep 2020 13:07:12 -0700 Subject: [PATCH] Fix spelling (#475) Fixed the spelling in a few comments. --- src/cursor.rs | 2 +- src/style/macros.rs | 2 +- src/style/styled_content.rs | 4 ++-- src/terminal.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cursor.rs b/src/cursor.rs index 6807273..21d02a3 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -10,7 +10,7 @@ //! ## Examples //! //! Cursor actions can be performed with commands. -//! Please have a look at [command documention](../index.html#command-api) for a more detailed documentation. +//! Please have a look at [command documentation](../index.html#command-api) for a more detailed documentation. //! //! ```no_run //! use std::io::{stdout, Write}; diff --git a/src/style/macros.rs b/src/style/macros.rs index e2d894f..0b92d20 100644 --- a/src/style/macros.rs +++ b/src/style/macros.rs @@ -34,7 +34,7 @@ // Produces a single method for a "base" Styler implementation // // The first argument is the type for which Styler is being implemented. Because this is the same -// for all "base" types, we can collase them into a single macro. +// for all "base" types, we can collapse them into a single macro. macro_rules! def_attr_base { ($impl_ty:ty, $name:ident => $attr:path) => { fn $name(self) -> StyledContent<$impl_ty> { diff --git a/src/style/styled_content.rs b/src/style/styled_content.rs index e6c7c69..7488a2c 100644 --- a/src/style/styled_content.rs +++ b/src/style/styled_content.rs @@ -83,7 +83,7 @@ impl StyledContent { &self.style } - /// Returns a mutable reference to the style, so that it can be futher + /// Returns a mutable reference to the style, so that it can be further /// manipulated #[inline] pub fn style_mut(&mut self) -> &mut ContentStyle { @@ -111,7 +111,7 @@ impl Display for StyledContent { self.content.fmt(f)?; - // TODO: There are specific command sequences for "reset forground + // TODO: There are specific command sequences for "reset foreground // color (39m)" and "reset background color (49m)"; consider using // these. if reset { diff --git a/src/terminal.rs b/src/terminal.rs index 58f81f4..94e8d35 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -8,7 +8,7 @@ //! to demonstrate the capabilities. //! //! Most terminal actions can be performed with commands. -//! Please have a look at [command documention](../index.html#command-api) for a more detailed documentation. +//! Please have a look at [command documentation](../index.html#command-api) for a more detailed documentation. //! //! ## Screen Buffer //!