From fe862523e611ccc0ca14374e5565e10938c321c8 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 11 May 2022 10:09:15 +0200 Subject: [PATCH] Document use of empty strings for defaults --- rslib/src/import_export/text/import.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rslib/src/import_export/text/import.rs b/rslib/src/import_export/text/import.rs index 47d841242..47ac1391b 100644 --- a/rslib/src/import_export/text/import.rs +++ b/rslib/src/import_export/text/import.rs @@ -24,7 +24,11 @@ impl ForeignData { struct Context<'a> { col: &'a mut Collection, + /// Notetypes by their name or id as string. The empty string yields the + /// default notetype (which may be [None]). notetypes: HashMap>>, + /// Deck ids by their decks' name or id as string. The empty string yields + /// the default deck (which may be [None]). deck_ids: HashMap>, usn: Usn, normalize_notes: bool,