We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaa1002 + 6755805 commit 15e8b90Copy full SHA for 15e8b90
compiler/rustc_span/src/lib.rs
@@ -2105,7 +2105,7 @@ fn remove_bom(src: &mut String, normalized_pos: &mut Vec<NormalizedPos>) {
2105
2106
/// Replaces `\r\n` with `\n` in-place in `src`.
2107
///
2108
-/// Returns error if there's a lone `\r` in the string.
+/// Leaves any occurrences of lone `\r` unchanged.
2109
fn normalize_newlines(src: &mut String, normalized_pos: &mut Vec<NormalizedPos>) {
2110
if !src.as_bytes().contains(&b'\r') {
2111
return;
0 commit comments