diff options
author | Martin Lindhe <martin-commit@ubique.se> | 2017-10-30 16:03:58 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-30 09:25:13 -0700 |
commit | 5b444375f22927c3661c331f3f37519940204bc0 (patch) | |
tree | 0079436834a54bd5e58e48e46a253f2a73890b6d /src | |
parent | f646f6c9f8b04d7c880920941eccce699fba6b04 (diff) | |
download | alacritty-5b444375f22927c3661c331f3f37519940204bc0.tar.gz alacritty-5b444375f22927c3661c331f3f37519940204bc0.zip |
fix some typos in comments
Diffstat (limited to 'src')
-rw-r--r-- | src/ansi.rs | 10 | ||||
-rw-r--r-- | src/config.rs | 2 | ||||
-rw-r--r-- | src/display.rs | 2 | ||||
-rw-r--r-- | src/event_loop.rs | 2 | ||||
-rw-r--r-- | src/selection.rs | 4 | ||||
-rw-r--r-- | src/term/mod.rs | 8 | ||||
-rw-r--r-- | src/tty.rs | 2 |
7 files changed, 15 insertions, 15 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 0e12736d..76064f18 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -299,12 +299,12 @@ pub trait Handler { /// DECKPAM - Set keypad to applications mode (ESCape instead of digits) fn set_keypad_application_mode(&mut self) {} - /// DECKPNM - Set keypad to numeric mode (digits intead of ESCape seq) + /// DECKPNM - Set keypad to numeric mode (digits instead of ESCape seq) fn unset_keypad_application_mode(&mut self) {} /// Set one of the graphic character sets, G0 to G3, as the active charset. /// - /// 'Invoke' one of G0 to G3 in the GL area. Also refered to as shift in, + /// 'Invoke' one of G0 to G3 in the GL area. Also referred to as shift in, /// shift out and locking shift depending on the set being activated fn set_active_charset(&mut self, CharsetIndex) {} @@ -1234,7 +1234,7 @@ pub mod C0 { /// /// 0x80 (@), 0x81 (A), 0x82 (B), 0x83 (C) are reserved /// 0x98 (X), 0x99 (Y) are reserved -/// 0x9a (Z) is resezved, but causes DEC terminals to respond with DA codes +/// 0x9a (Z) is 'reserved', but causes DEC terminals to respond with DA codes #[allow(non_snake_case)] pub mod C1 { /// Reserved @@ -1249,7 +1249,7 @@ pub mod C1 { pub const IND: u8 = 0x84; /// New line, moves done one line and to first column (CR+LF) pub const NEL: u8 = 0x85; - /// Start of Selected Area to be as charsent to auxiliary output device + /// Start of Selected Area to be sent to auxiliary output device pub const SSA: u8 = 0x86; /// End of Selected Area to be sent to auxiliary output device pub const ESA: u8 = 0x87; @@ -1291,7 +1291,7 @@ pub mod C1 { pub const SGCI: u8 = 0x99; /// DECID - Identify Terminal pub const DECID: u8 = 0x9a; - /// Control Sequence Introducer (described in a seperate table) + /// Control Sequence Introducer pub const CSI: u8 = 0x9B; /// String Terminator (VT125 exits graphics) pub const ST: u8 = 0x9C; diff --git a/src/config.rs b/src/config.rs index 3f3b6942..768b5579 100644 --- a/src/config.rs +++ b/src/config.rs @@ -235,7 +235,7 @@ pub struct Config { #[serde(default)] custom_cursor_colors: bool, - /// Should draw bold text with brighter colors intead of bold font + /// Should draw bold text with brighter colors instead of bold font #[serde(default="true_bool")] draw_bold_text_with_bright_colors: bool, diff --git a/src/display.rs b/src/display.rs index fc5a5d40..31576355 100644 --- a/src/display.rs +++ b/src/display.rs @@ -139,7 +139,7 @@ impl Display { // Create the window where Alacritty will be displayed let mut window = Window::new(&options.title)?; - // get window properties for initializing the other subsytems + // get window properties for initializing the other subsystems let size = window.inner_size_pixels() .expect("glutin returns window size"); let dpr = window.hidpi_factor(); diff --git a/src/event_loop.rs b/src/event_loop.rs index 5095f359..02b7a5e5 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -195,7 +195,7 @@ impl<Io> EventLoop<Io> // Drain the channel // - // Returns a `DrainResult` indicating the result of receiving from the channe; + // Returns a `DrainResult` indicating the result of receiving from the channel // fn drain_recv_channel(&self, state: &mut State) -> DrainResult { let mut received_item = false; diff --git a/src/selection.rs b/src/selection.rs index 714c84c4..1c31a452 100644 --- a/src/selection.rs +++ b/src/selection.rs @@ -47,7 +47,7 @@ pub enum Selection { /// The region representing start and end of cursor movement region: Region<Point>, - /// When begining a semantic selection, the grid is searched around the + /// When beginning a semantic selection, the grid is searched around the /// initial point to find semantic escapes, and this initial expansion /// marks those points. initial_expansion: Region<Point> @@ -398,7 +398,7 @@ impl ToRange for Span { /// /// There are comments on all of the tests describing the selection. Pictograms /// are used to avoid ambiguity. Grid cells are represented by a [ ]. Only -/// cells that are comletely covered are counted in a selection. Ends are +/// cells that are completely covered are counted in a selection. Ends are /// represented by `B` and `E` for begin and end, respectively. A selected cell /// looks like [XX], [BX] (at the start), [XB] (at the end), [XE] (at the end), /// and [EX] (at the start), or [BE] for a single cell. Partially selected cells diff --git a/src/term/mod.rs b/src/term/mod.rs index 59cf6baf..7324d401 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -559,7 +559,7 @@ impl VisualBell { self.intensity_at_instant(now) } - /// Get the currenty intensity of the visual bell. The bell's intensity + /// Get the currently intensity of the visual bell. The bell's intensity /// ramps down from 1.0 to 0.0 at a rate determined by the bell's duration. pub fn intensity(&self) -> f64 { self.intensity_at_instant(Instant::now()) @@ -650,7 +650,7 @@ pub struct Term { /// This is true after the last column is set with the input function. Any function that /// implicitly sets the line or column needs to set this to false to avoid wrapping twice. /// input_needs_wrap ensures that cursor.col is always valid for use into indexing into - /// arrays. Without it we wold have to sanitize cursor.col every time we used it. + /// arrays. Without it we would have to sanitize cursor.col every time we used it. input_needs_wrap: bool, /// Got a request to set title; it's buffered here until next draw. @@ -1474,13 +1474,13 @@ impl ansi::Handler for Term { /// LF/NL mode has some interesting history. According to ECMA-48 4th /// edition, in LINE FEED mode, /// - /// > The execution of the formator functions LINE FEED (LF), FORM FEED + /// > The execution of the formatter functions LINE FEED (LF), FORM FEED /// (FF), LINE TABULATION (VT) cause only movement of the active position in /// the direction of the line progression. /// /// In NEW LINE mode, /// - /// > The execution of the formator functions LINE FEED (LF), FORM FEED + /// > The execution of the formatter functions LINE FEED (LF), FORM FEED /// (FF), LINE TABULATION (VT) cause movement to the line home position on /// the following line, the following form, etc. In the case of LF this is /// referred to as the New Line (NL) option. @@ -37,7 +37,7 @@ static mut PID: pid_t = 0; /// /// Calling exit() in the SIGCHLD handler sometimes causes opengl to deadlock, /// and the process hangs. Instead, this flag is set, and its status can be -/// cheked via `process_should_exit`. +/// checked via `process_should_exit`. static mut SHOULD_EXIT: bool = false; extern "C" fn sigchld(_a: c_int) { |