We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7556f71 commit 0321c26Copy full SHA for 0321c26
rslib/src/notes/mod.rs
@@ -590,9 +590,9 @@ impl Collection {
590
Ok(changed_notes)
591
}
592
593
- /// Check if the note's first field is empty or a duplicate. Then for cloze
594
- /// notetypes, check if there is a cloze in a non-cloze field or if there's
595
- /// no cloze at all. For other notetypes, just check if there's a cloze.
+ /// Check if there is a cloze in a non-cloze field. Then check if the
+ /// note's first field is empty. For cloze notetypes, check whether there
+ /// is a cloze at all. Finally, check if the first field is a duplicate.
596
pub fn note_fields_check(&mut self, note: &Note) -> Result<NoteFieldsState> {
597
Ok({
598
let cloze_state = self.field_cloze_check(note)?;
0 commit comments