diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/func.rs | 10 | ||||
| -rw-r--r-- | src/model/symbol.rs | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/model/func.rs b/src/model/func.rs index 1ccb0107..c5bab64c 100644 --- a/src/model/func.rs +++ b/src/model/func.rs @@ -226,18 +226,14 @@ pub struct FuncInfo { pub name: &'static str, /// The display name of the function. pub display: &'static str, - /// Which category the function is part of. - pub category: &'static str, /// Documentation for the function. pub docs: &'static str, - /// The source code of an example, if any. - pub example: Option<&'static str>, - /// Documentation about this function's syntax, if it has syntax. - pub syntax: Option<&'static str>, /// Details about the function's parameters. pub params: Vec<ParamInfo>, /// Valid types for the return value. pub returns: Vec<&'static str>, + /// Which category the function is part of. + pub category: &'static str, } impl FuncInfo { @@ -254,8 +250,6 @@ pub struct ParamInfo { pub name: &'static str, /// Documentation for the parameter. pub docs: &'static str, - /// The source code of an example, if any. - pub example: Option<&'static str>, /// Valid values for the parameter. pub cast: CastInfo, /// Is the parameter positional? diff --git a/src/model/symbol.rs b/src/model/symbol.rs index 9d226801..16ab58af 100644 --- a/src/model/symbol.rs +++ b/src/model/symbol.rs @@ -6,7 +6,6 @@ use std::sync::Arc; use crate::diag::StrResult; use crate::util::EcoString; -/// Define a list of symbols. #[doc(inline)] pub use typst_macros::symbols; @@ -169,8 +168,6 @@ fn contained(modifiers: &str, m: &str) -> bool { } /// Normalize an accent to a combining one. -/// -/// https://www.w3.org/TR/mathml-core/#combining-character-equivalences pub fn combining_accent(c: char) -> Option<char> { Some(match c { '\u{0300}' | '`' => '\u{0300}', |
