Skip to content

Commit a327bca

Browse files
committed
docs: make comments slightly clearer
1 parent 797012d commit a327bca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/c2pdf/src/lib/code_to_pdf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ impl CodeToPdf {
229229
});
230230
prev_colour = text_colour;
231231
}
232-
// Split into lines, with the length of the first line being the length remaining on the current line
232+
// Split region into multiple lines if it is too long to fit on the current line
233233
let lines = self.text_wrapper.split_into_lines(text, |i| match i {
234234
0 => Pt(line_width_remaining),
235235
_ => self.page_dimensions.max_text_width().into_pt(),
236236
});
237237
match lines.len() {
238-
// If only a single line, then no new lines are going to be made (as we're processing a region here)
238+
// If only a single line, then no new lines are going to be made (as we're processing a single region here)
239239
1 => {
240240
self.current_page_contents.push(Op::WriteText {
241241
items: vec![TextItem::Text(

0 commit comments

Comments
 (0)