Skip to content

Commit 283cb68

Browse files
committed
replace one with ascii
1 parent f9d7005 commit 283cb68

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/size.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ impl TextSize {
5959
pub const fn zero() -> TextSize {
6060
TextSize(0)
6161
}
62-
63-
/// A size of one.
64-
#[inline]
65-
pub const fn one() -> TextSize {
66-
TextSize(1)
67-
}
6862
}
6963

7064
/// Methods to act like a primitive integer type, where reasonably applicable.
@@ -75,7 +69,7 @@ impl TextSize {
7569
/// The largest representable text size. (`u32::MAX`)
7670
pub const MAX: TextSize = TextSize(u32::MAX);
7771
/// The text size of a single ASCII character.
78-
pub const ONE: TextSize = TextSize(1);
72+
pub const ASCII: TextSize = TextSize(1);
7973

8074
/// Checked addition. Returns `None` if overflow occurred.
8175
#[inline]

0 commit comments

Comments
 (0)