fix most typos, add crate-ci/typos to CI (#2653)
* fix most typos, add crate-ci/typos to CI --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
841b447d2a
commit
9167cd9dec
83 files changed
+258
-203
No files matched your search
@@ -4,7 +4,7 @@ use dioxus_core::prelude::IntoAttributeValue;
|
||||
use dioxus_core::HasAttributes;
|
||||
use dioxus_html_internal_macro::impl_extension_attributes;
|
||||
|
||||
use crate::AttributeDiscription;
|
||||
use crate::AttributeDescription;
|
||||
|
||||
#[cfg(feature = "hot-reload-context")]
|
||||
macro_rules! mod_method_mapping {
|
||||
@@ -161,7 +161,7 @@ macro_rules! mod_methods {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $name: AttributeDiscription = mod_methods! { $name $(: $js_name)? $(in $ns)?; };
|
||||
pub const $name: AttributeDescription = mod_methods! { $name $(: $js_name)? $(in $ns)?; };
|
||||
};
|
||||
|
||||
(
|
||||
@@ -192,7 +192,7 @@ macro_rules! mod_methods {
|
||||
$(
|
||||
#[doc(alias = $js_name)]
|
||||
)?
|
||||
pub const $name: AttributeDiscription = mod_methods! { $name $(: $js_name)? $(in $ns)?; };
|
||||
pub const $name: AttributeDescription = mod_methods! { $name $(: $js_name)? $(in $ns)?; };
|
||||
};
|
||||
|
||||
// Rename the incoming ident and apply a custom namespace
|
||||
@@ -1530,8 +1530,8 @@ mod_methods! {
|
||||
/// <https://developer.mozilla.org/en-US/docs/Web/CSS/voice-stress>
|
||||
voice_stress: "voice-stress" in "style";
|
||||
|
||||
/// <https://developer.mozilla.org/en-US/docs/Web/CSS/voice-volumn>
|
||||
voice_volumn: "voice-volumn" in "style";
|
||||
/// <https://developer.mozilla.org/en-US/docs/Web/CSS/voice-volume>
|
||||
voice_volume: "voice-volume" in "style";
|
||||
|
||||
/// <https://developer.mozilla.org/en-US/docs/Web/CSS/volume>
|
||||
volume in "style";
|
||||
|
||||
@@ -9,7 +9,7 @@ use dioxus_rsx::HotReloadingContext;
|
||||
#[cfg(feature = "hot-reload-context")]
|
||||
use crate::{map_global_attributes, map_svg_attributes};
|
||||
|
||||
pub type AttributeDiscription = (&'static str, Option<&'static str>, bool);
|
||||
pub type AttributeDescription = (&'static str, Option<&'static str>, bool);
|
||||
|
||||
macro_rules! impl_attribute {
|
||||
(
|
||||
@@ -38,7 +38,7 @@ macro_rules! impl_attribute {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $fil: AttributeDiscription = (stringify!($fil), None, false);
|
||||
pub const $fil: AttributeDescription = (stringify!($fil), None, false);
|
||||
};
|
||||
|
||||
(
|
||||
@@ -67,7 +67,7 @@ macro_rules! impl_attribute {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $fil: AttributeDiscription = ($name, None, false);
|
||||
pub const $fil: AttributeDescription = ($name, None, false);
|
||||
};
|
||||
|
||||
(
|
||||
@@ -96,7 +96,7 @@ macro_rules! impl_attribute {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $fil: AttributeDiscription = (stringify!($fil), None, true);
|
||||
pub const $fil: AttributeDescription = (stringify!($fil), None, true);
|
||||
};
|
||||
|
||||
(
|
||||
@@ -125,7 +125,7 @@ macro_rules! impl_attribute {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $fil: AttributeDiscription = (stringify!($fil), Some($ns), false)
|
||||
pub const $fil: AttributeDescription = (stringify!($fil), Some($ns), false)
|
||||
};
|
||||
|
||||
(
|
||||
@@ -154,7 +154,7 @@ macro_rules! impl_attribute {
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
pub const $fil: AttributeDiscription = (stringify!($fil), Some($ns), true)
|
||||
pub const $fil: AttributeDescription = (stringify!($fil), Some($ns), true)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -621,7 +621,7 @@ macro_rules! builder_constructors {
|
||||
//
|
||||
// Does not include obsolete elements.
|
||||
//
|
||||
// This namespace represents a collection of modern HTML-5 compatiable elements.
|
||||
// This namespace represents a collection of modern HTML-5 compatible elements.
|
||||
//
|
||||
// This list does not include obsolete, deprecated, experimental, or poorly supported elements.
|
||||
builder_constructors! {
|
||||
|
||||
@@ -622,7 +622,7 @@ pub enum KeyCode {
|
||||
// numpad period (chrome), = 194
|
||||
OpenBracket = 219,
|
||||
BackSlash = 220,
|
||||
CloseBraket = 221,
|
||||
CloseBracket = 221,
|
||||
SingleQuote = 222,
|
||||
// `, = 223
|
||||
// left or right ⌘ key (firefox), = 224
|
||||
@@ -742,7 +742,7 @@ impl KeyCode {
|
||||
192 => GraveAccent,
|
||||
219 => OpenBracket,
|
||||
220 => BackSlash,
|
||||
221 => CloseBraket,
|
||||
221 => CloseBracket,
|
||||
222 => SingleQuote,
|
||||
_ => Unknown,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user