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>
This commit is contained in:
RREEMMII 2025-04-26 03:55:40 +02:00 committed by GitHub
parent 7556f71b96
commit 0321c26e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -590,9 +590,9 @@ impl Collection {
Ok(changed_notes) Ok(changed_notes)
} }
/// Check if the note's first field is empty or a duplicate. Then for cloze /// Check if there is a cloze in a non-cloze field. Then check if the
/// notetypes, check if there is a cloze in a non-cloze field or if there's /// note's first field is empty. For cloze notetypes, check whether there
/// no cloze at all. For other notetypes, just check if there's a cloze. /// is a cloze at all. Finally, check if the first field is a duplicate.
pub fn note_fields_check(&mut self, note: &Note) -> Result<NoteFieldsState> { pub fn note_fields_check(&mut self, note: &Note) -> Result<NoteFieldsState> {
Ok({ Ok({
let cloze_state = self.field_cloze_check(note)?; let cloze_state = self.field_cloze_check(note)?;