Skip to content

Commit 904fc98

Browse files
authored
Fix docs (#96)
1 parent 2f89766 commit 904fc98

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
//!
33
//! ## Model
44
//! A [`Symbol`] is a collection of one or more _variants_. Each variant is
5-
//! identified by a set of [_modifiers_](ModifierSet) and has a single character
6-
//! as its value. The modifiers themselves can in principle be any non-empty
7-
//! strings that don't contain the character `.`, but codex only defines ones
8-
//! that are entirely made of ASCII alphabetical characters.
5+
//! identified by a set of [_modifiers_](ModifierSet) and has a string as its
6+
//! value. The modifiers themselves can in principle be any non-empty strings
7+
//! that don't contain the character `.`, but codex only defines ones that are
8+
//! entirely made of ASCII alphabetical characters.
99
1010
pub use self::shared::ModifierSet;
1111

@@ -68,7 +68,7 @@ pub enum Symbol {
6868
}
6969

7070
impl Symbol {
71-
/// Get the symbol's character for a given set of modifiers, alongside an optional deprecation
71+
/// Get the symbol's variant for a given set of modifiers, alongside an optional deprecation
7272
/// message.
7373
pub fn get(&self, modifs: ModifierSet<&str>) -> Option<(&'static str, Option<&str>)> {
7474
match self {
@@ -79,9 +79,9 @@ impl Symbol {
7979
}
8080
}
8181

82-
/// The characters that are covered by this symbol.
82+
/// Iterate over the variants of this symbol.
8383
///
84-
/// Each variant is represented by a tuple `(modifiers, character, deprecation)`.
84+
/// Each variant is represented by a tuple `(modifiers, value, deprecation)`.
8585
pub fn variants(
8686
&self,
8787
) -> impl Iterator<Item = (ModifierSet<&str>, &'static str, Option<&str>)> {

src/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl<S: Deref<Target = str>> ModifierSet<S> {
2525
// expensive, even for debug mode.
2626
debug_assert!(
2727
!s.contains(".."),
28-
"ModifierSet::from_dotted called with string containing empty modifier"
28+
"ModifierSet::from_raw_dotted called with string containing empty modifier"
2929
);
3030
Self(s)
3131
}

0 commit comments

Comments
 (0)