From 0321c26e7317e5c2ea1fd3b01154255d09f80edf Mon Sep 17 00:00:00 2001 From: RREEMMII <64311122+rreemmii-dev@users.noreply.github.com> Date: Sat, 26 Apr 2025 03:55:40 +0200 Subject: [PATCH] Fix docs of note_fields_check to match changes made in PR #3912 (#3944) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rémi Deloye --- rslib/src/notes/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rslib/src/notes/mod.rs b/rslib/src/notes/mod.rs index 2243a916d..2b53321b9 100644 --- a/rslib/src/notes/mod.rs +++ b/rslib/src/notes/mod.rs @@ -590,9 +590,9 @@ impl Collection { Ok(changed_notes) } - /// Check if the note's first field is empty or a duplicate. Then for cloze - /// notetypes, check if there is a cloze in a non-cloze field or if there's - /// 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. pub fn note_fields_check(&mut self, note: &Note) -> Result { Ok({ let cloze_state = self.field_cloze_check(note)?;