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.
1 parent b0a8944 commit 15982b2Copy full SHA for 15982b2
compiler/rustc_errors/src/emitter.rs
@@ -2624,9 +2624,9 @@ fn normalize_whitespace(s: &str) -> String {
2624
i += 1;
2625
}
2626
2627
- // Scan the input string for a character in the ordered table above. If it's present, replace
2628
- // it with it's alternative string (it can be more than 1 char!). Otherwise, retain the input
2629
- // char. At the end, allocate all chars into a string in one operation.
+ // Scan the input string for a character in the ordered table above.
+ // If it's present, replace it with its alternative string (it can be more than 1 char!).
+ // Otherwise, retain the input char.
2630
s.chars().fold(String::with_capacity(s.len()), |mut s, c| {
2631
match OUTPUT_REPLACEMENTS.binary_search_by_key(&c, |(k, _)| *k) {
2632
Ok(i) => s.push_str(OUTPUT_REPLACEMENTS[i].1),
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments