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
1010pub use self :: shared:: ModifierSet ;
1111
@@ -68,7 +68,7 @@ pub enum Symbol {
6868}
6969
7070impl 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 > ) > {
0 commit comments