mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
static->const
This commit is contained in:
parent
0ccc9e98a8
commit
feb0a31bba
1 changed files with 6 additions and 6 deletions
|
@ -113,17 +113,17 @@ lazy_static! {
|
|||
|
||||
mod cloze_caps {
|
||||
// cloze ordinal
|
||||
pub static ORD: usize = 1;
|
||||
pub const ORD: usize = 1;
|
||||
// the occluded text
|
||||
pub static TEXT: usize = 2;
|
||||
pub const TEXT: usize = 2;
|
||||
// optional hint
|
||||
pub static HINT: usize = 3;
|
||||
pub const HINT: usize = 3;
|
||||
}
|
||||
|
||||
mod mathjax_caps {
|
||||
pub static OPENING_TAG: usize = 1;
|
||||
pub static INNER_TEXT: usize = 2;
|
||||
pub static CLOSING_TAG: usize = 3;
|
||||
pub const OPENING_TAG: usize = 1;
|
||||
pub const INNER_TEXT: usize = 2;
|
||||
pub const CLOSING_TAG: usize = 3;
|
||||
}
|
||||
|
||||
fn reveal_cloze_text(text: &str, ord: u16, question: bool) -> Cow<str> {
|
||||
|
|
Loading…
Reference in a new issue