Skip to content

Commit 20842e5

Browse files
committed
refactor(render): Update fn name for slice -> snippet
1 parent 568b1a3 commit 20842e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/display_list.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'a> DisplayList<'a> {
122122
body.push(format_title(level, id, title));
123123

124124
for (idx, snippet) in snippets.into_iter().enumerate() {
125-
body.append(&mut format_slice(
125+
body.append(&mut format_snippet(
126126
snippet,
127127
idx == 0,
128128
!footer.is_empty(),
@@ -762,7 +762,7 @@ fn format_label(
762762
result
763763
}
764764

765-
fn format_slice(
765+
fn format_snippet(
766766
snippet: snippet::Snippet<'_>,
767767
is_first: bool,
768768
has_footer: bool,

0 commit comments

Comments
 (0)