Skip to content

Commit 6ef866a

Browse files
committed
Rename add to insert
1 parent d7d2c96 commit 6ef866a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ impl<S: Deref<Target = str>> ModifierSet<S> {
4040
ModifierSet(&self.0)
4141
}
4242

43-
/// Add a modifier to the set, without checking that it is a valid modifier.
43+
/// Inserts a modifier into the set, without checking that it is a valid modifier.
4444
///
4545
/// It is not unsafe to use this method incorrectly, but that can produce
4646
/// unexpected results down the line. Correct usage should ensure that
4747
/// `modifier` is not empty and doesn't contain the character `.`.
48-
pub fn add_unchecked(&mut self, m: &str)
48+
pub fn insert_unchecked(&mut self, m: &str)
4949
where
5050
S: for<'a> std::ops::AddAssign<&'a str>,
5151
{

0 commit comments

Comments
 (0)