Fix typos detected by crate-ci/typos

This commit is contained in:
Mikayla 2024-01-17 14:31:21 -08:00
parent df67917768
commit 57400e9687
No known key found for this signature in database
71 changed files with 133 additions and 133 deletions

View file

@ -149,7 +149,7 @@ impl BackgroundExecutor {
Task::Spawned(task)
}
/// Used by the test harness to run an async test in a syncronous fashion.
/// Used by the test harness to run an async test in a synchronous fashion.
#[cfg(any(test, feature = "test-support"))]
#[track_caller]
pub fn block_test<R>(&self, future: impl Future<Output = R>) -> R {
@ -276,7 +276,7 @@ impl BackgroundExecutor {
/// Returns a task that will complete after the given duration.
/// Depending on other concurrent tasks the elapsed duration may be longer
/// than reqested.
/// than requested.
pub fn timer(&self, duration: Duration) -> Task<()> {
let (runnable, task) = async_task::spawn(async move {}, {
let dispatcher = self.dispatcher.clone();

View file

@ -445,7 +445,7 @@ mod tests {
KeyMatch::Some(vec![Box::new(Dollar)])
);
// handle Brazillian quote (quote key then space key)
// handle Brazilian quote (quote key then space key)
assert_eq!(
matcher.match_keystroke(
&Keystroke::parse("space->\"").unwrap(),
@ -454,7 +454,7 @@ mod tests {
KeyMatch::Some(vec![Box::new(Quote)])
);
// handle ctrl+` on a brazillian keyboard
// handle ctrl+` on a brazilian keyboard
assert_eq!(
matcher.match_keystroke(&Keystroke::parse("ctrl-->`").unwrap(), &[context_a.clone()]),
KeyMatch::Some(vec![Box::new(Backtick)])

View file

@ -19,7 +19,7 @@ impl Keystroke {
// the ime_key or the key. On some non-US keyboards keys we use in our
// bindings are behind option (for example `$` is typed `alt-ç` on a Czech keyboard),
// and on some keyboards the IME handler converts a sequence of keys into a
// specific character (for example `"` is typed as `" space` on a brazillian keyboard).
// specific character (for example `"` is typed as `" space` on a brazilian keyboard).
pub fn match_candidates(&self) -> SmallVec<[Keystroke; 2]> {
let mut possibilities = SmallVec::new();
match self.ime_key.as_ref() {

View file

@ -10,7 +10,7 @@ mod open_type;
mod platform;
mod text_system;
mod window;
mod window_appearence;
mod window_appearance;
use crate::{px, size, GlobalPixels, Pixels, Size};
use cocoa::{

View file

@ -42,7 +42,7 @@ pub struct Style {
#[refineable]
pub inset: Edges<Length>,
// Size properies
// Size properties
/// Sets the initial size of the item
#[refineable]
pub size: Size<Length>,
@ -79,7 +79,7 @@ pub struct Style {
#[refineable]
pub gap: Size<DefiniteLength>,
// Flexbox properies
// Flexbox properties
/// Which direction does the main axis flow in?
pub flex_direction: FlexDirection,
/// Should elements wrap, or stay in a single line?
@ -502,7 +502,7 @@ impl Default for Style {
max_size: Size::auto(),
aspect_ratio: None,
gap: Size::default(),
// Aligment
// Alignment
align_items: None,
align_self: None,
align_content: None,

View file

@ -2130,7 +2130,7 @@ impl<'a> WindowContext<'a> {
.unwrap();
// Actual: Option<AnyElement> <- View
// Requested: () <- AnyElemet
// Requested: () <- AnyElement
let state = state_box
.take()
.expect("element state is already on the stack");