fix some typos in comments

This commit is contained in:
Martin Lindhe 2017-10-30 16:03:58 +01:00 committed by Joe Wilm
parent f646f6c9f8
commit 5b444375f2
10 changed files with 21 additions and 21 deletions

View File

@ -184,7 +184,7 @@ Oct Hex Name * (* marks function used in DEC VT series or LA series terminals)
230 98 X Reserved for for future standard
231 99 Y Reserved
232 9A Z * Reserved, but causes DEC terminals to respond with DA codes
233 9B [ CSI * Control Sequence Introducer (described in a seperate table)
233 9B [ CSI * Control Sequence Introducer (described in a separate table)
234 9C \ ST * String Terminator (VT125 exits graphics)
235 9D ] OSC Operating System Command (reprograms intelligent terminal)
236 9E ^ PM Privacy Message (password verification), terminated by ST
@ -268,7 +268,7 @@ Oct Hex * (* marks function used in DEC VT series or LA series terminals)
073 3B ;
074 3C < * DECANSI - Switch from VT52 mode to VT100 mode
075 3D = * DECKPAM - Set keypad to applications mode (ESCape instead of digits)
076 3E > * DECKPNM - Set keypad to numeric mode (digits intead of ESCape seq)
076 3E > * DECKPNM - Set keypad to numeric mode (digits instead of ESCape seq)
077 3F ?
DCS Device Control Strings used by DEC terminals (ends with ST)

View File

@ -71,7 +71,7 @@ impl<'a> StringPropertyIter<'a> {
}
}
/// Iterator over interger properties
/// Iterator over integer properties
pub struct BooleanPropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],
@ -108,7 +108,7 @@ impl<'a> BooleanPropertyIter<'a> {
}
}
/// Iterator over interger properties
/// Iterator over integer properties
pub struct IntPropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],
@ -226,7 +226,7 @@ impl<'a> LcdFilterPropertyIter<'a> {
}
}
/// Iterator over interger properties
/// Iterator over integer properties
pub struct DoublePropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],

View File

@ -142,7 +142,7 @@ impl IntoFontconfigType for Weight {
}
impl FreeTypeRasterizer {
/// Load a font face accoring to `FontDesc`
/// Load a font face according to `FontDesc`
fn get_face(&mut self, desc: &FontDesc, size: Size) -> Result<FontKey, Error> {
// Adjust for DPI
let size = Size::new(size.as_f32_pts() * self.device_pixel_ratio * 96. / 72.);

View File

@ -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;

View File

@ -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,

View File

@ -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();

View File

@ -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;

View File

@ -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

View File

@ -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.

View File

@ -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) {