Skip to content

Commit 0321c26

Browse files
rreemmii-devRémi Deloye
and
Rémi Deloye
authored
Fix docs of note_fields_check to match changes made in PR #3912 (#3944)
Co-authored-by: Rémi Deloye <remi.deloye@telecom-paris.fr>
1 parent 7556f71 commit 0321c26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rslib/src/notes/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ impl Collection {
590590
Ok(changed_notes)
591591
}
592592

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.
593+
/// Check if there is a cloze in a non-cloze field. Then check if the
594+
/// note's first field is empty. For cloze notetypes, check whether there
595+
/// is a cloze at all. Finally, check if the first field is a duplicate.
596596
pub fn note_fields_check(&mut self, note: &Note) -> Result<NoteFieldsState> {
597597
Ok({
598598
let cloze_state = self.field_cloze_check(note)?;

0 commit comments

Comments
 (0)