Skip to content

Commit 7a341cc

Browse files
committed
more accurate comments for delimiter push/pop
1 parent 269e5e0 commit 7a341cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/csl/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,13 +1936,16 @@ impl WritingContext {
19361936
.reconfigure((*self.cases.last()).map(Into::into).unwrap_or_default());
19371937
}
19381938

1939-
/// Set the delimiter of the next [`citationberg::Choose`].
1939+
/// Set the delimiter of the children of a [`citationberg::Group`] or
1940+
/// [`citationberg::Layout`]. It is inherited by [`citationberg::Choose`]
1941+
/// for its children as well.
19401942
fn push_delimiter(&mut self, delimiter: Option<String>) -> DelimiterIdx {
19411943
let idx = self.delimiters.len();
19421944
self.delimiters.push(delimiter);
19431945
DelimiterIdx(idx)
19441946
}
1945-
/// Clear the delimiter of the next [`citationberg::Choose`].
1947+
/// Clear the delimiter after a [`citationberg::Group`] or
1948+
/// [`citationberg::Layout`].
19461949
fn pop_delimiter(&mut self, idx: DelimiterIdx) {
19471950
if idx.0 == self.delimiters.len() {
19481951
return;

0 commit comments

Comments
 (0)