Skip to content

Commit f8f3338

Browse files
committed
Doublestruck -> DoubleStruck
1 parent 5c346f7 commit f8f3338

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/styling.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub const UNICODE_VERSION: (u8, u8, u8) = (16, 0, 0);
5050
/// # Shaping
5151
///
5252
/// The Arabic styles (including those from the
53-
/// [`Doublestruck`](MathStyle::Doublestruck) style) are not subject to
53+
/// [`DoubleStruck`](MathStyle::DoubleStruck) style) are not subject to
5454
/// shaping. However, [`Plain`](MathStyle::Plain) should still be shaped, as
5555
/// the characters are Arabic letters in the Arabic block (U+0600..U+06FF).
5656
///
@@ -140,13 +140,13 @@ pub enum MathStyle {
140140
/// Supported characters: digits, latin, arabic excluding ا (U+0627),
141141
/// ك (U+0643), ه (U+0647), and the extras ∑ (U+2211), Γ (U+0393), Π
142142
/// (U+03A0), γ (U+03B3), π (U+03C0).
143-
Doublestruck,
143+
DoubleStruck,
144144
/// Italic double-struck style. Also known as italic open-face style or
145145
/// italic blackboard-bold style.
146146
///
147147
/// This is an exceptional style as only the following Latin letters are
148148
/// supported: D (U+0044), d (U+0064), e (U+0065), i (U+0069), j (U+006A).
149-
DoublestruckItalic,
149+
DoubleStruckItalic,
150150
/// Chancery variant of script style.
151151
///
152152
/// Supported characters: latin.
@@ -254,7 +254,7 @@ impl fmt::Display for ToStyle {
254254
///
255255
/// let s = "xγΩAذح1∑س"
256256
/// .chars()
257-
/// .flat_map(|c| to_style(c, MathStyle::Doublestruck))
257+
/// .flat_map(|c| to_style(c, MathStyle::DoubleStruck))
258258
/// .collect::<String>();
259259
/// assert_eq!("𝕩ℽΩ𝔸𞺸𞺧𝟙⅀𞺮", s);
260260
/// ```
@@ -280,8 +280,8 @@ pub fn to_style(c: char, style: MathStyle) -> ToStyle {
280280
Tailed => [to_tailed(c), '\0'],
281281
Stretched => [to_stretched(c), '\0'],
282282
Looped => [to_looped(c), '\0'],
283-
Doublestruck => [to_doublestruck(c), '\0'],
284-
DoublestruckItalic => [to_doublestruck_italic(c), '\0'],
283+
DoubleStruck => [to_double_struck(c), '\0'],
284+
DoubleStruckItalic => [to_double_struck_italic(c), '\0'],
285285
Chancery => to_chancery(c),
286286
BoldChancery => to_bold_chancery(c),
287287
Roundhand => to_roundhand(c),
@@ -698,7 +698,7 @@ mod conversions {
698698
apply_delta(c, delta)
699699
}
700700

701-
pub fn to_doublestruck(c: char) -> char {
701+
pub fn to_double_struck(c: char) -> char {
702702
let delta = match c {
703703
// Letterlike Symbols Block (U+2100..U+214F)
704704
// Letterlike symbols (U+2100..U+2134)
@@ -752,7 +752,7 @@ mod conversions {
752752
apply_delta(c, delta)
753753
}
754754

755-
pub fn to_doublestruck_italic(c: char) -> char {
755+
pub fn to_double_struck_italic(c: char) -> char {
756756
let delta = match c {
757757
// Letterlike Symbols Block (U+2100..U+214F)
758758
// Double-struck italic math symbols (U+2145..U+2149)

0 commit comments

Comments
 (0)