Fix various typos

Using https://github.com/crate-ci/typos
This commit is contained in:
bbb651 2024-09-29 16:37:35 +03:00
parent afecc0f367
commit 7a86900a45
11 changed files with 16 additions and 16 deletions

View file

@ -477,9 +477,9 @@ pub struct Style {
pub background: Option<Background>,
/// The text [`Color`] of the button.
pub text_color: Color,
/// The [`Border`] of the buton.
/// The [`Border`] of the button.
pub border: Border,
/// The [`Shadow`] of the butoon.
/// The [`Shadow`] of the button.
pub shadow: Shadow,
}

View file

@ -487,7 +487,7 @@ pub struct Style {
pub background: Background,
/// The icon [`Color`] of the checkbox.
pub icon_color: Color,
/// The [`Border`] of hte checkbox.
/// The [`Border`] of the checkbox.
pub border: Border,
/// The text [`Color`] of the checkbox.
pub text_color: Option<Color>,
@ -600,7 +600,7 @@ pub fn success(theme: &Theme, status: Status) -> Style {
}
}
/// A danger checkbox; denoting a negaive toggle.
/// A danger checkbox; denoting a negative toggle.
pub fn danger(theme: &Theme, status: Status) -> Style {
let palette = theme.extended_palette();

View file

@ -608,8 +608,8 @@ where
..
}) = event
{
let shift_modifer = modifiers.shift();
match (named_key, shift_modifer) {
let shift_modifier = modifiers.shift();
match (named_key, shift_modifier) {
(key::Named::Enter, _) => {
if let Some(index) = &menu.hovered_option {
if let Some(option) =

View file

@ -1,6 +1,6 @@
//! Markdown widgets can parse and display Markdown.
//!
//! You can enable the `highlighter` feature for syntax highligting
//! You can enable the `highlighter` feature for syntax highlighting
//! in code blocks.
//!
//! Only the variants of [`Item`] are currently supported.
@ -72,7 +72,7 @@ pub enum Item {
Paragraph(Text),
/// A code block.
///
/// You can enable the `highlighter` feature for syntax highligting.
/// You can enable the `highlighter` feature for syntax highlighting.
CodeBlock(Text),
/// A list.
List {

View file

@ -72,7 +72,7 @@ where
self
}
/// Sets the defualt [`LineHeight`] of the [`Rich`] text.
/// Sets the default [`LineHeight`] of the [`Rich`] text.
pub fn line_height(mut self, line_height: impl Into<LineHeight>) -> Self {
self.line_height = line_height.into();
self