Skip to content

Commit 15008e1

Browse files
authored
Unrolled build for rust-lang#120453
Rollup merge of rust-lang#120453 - mattheww:2024-01_normalize_newlines, r=oli-obk Fix incorrect comment in normalize_newlines The incorrect comment seems to be left over from sometime before this function was first merged.
2 parents af08c64 + 6755805 commit 15008e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_span/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ fn remove_bom(src: &mut String, normalized_pos: &mut Vec<NormalizedPos>) {
21052105

21062106
/// Replaces `\r\n` with `\n` in-place in `src`.
21072107
///
2108-
/// Returns error if there's a lone `\r` in the string.
2108+
/// Leaves any occurrences of lone `\r` unchanged.
21092109
fn normalize_newlines(src: &mut String, normalized_pos: &mut Vec<NormalizedPos>) {
21102110
if !src.as_bytes().contains(&b'\r') {
21112111
return;

0 commit comments

Comments
 (0)