Skip to content

Commit 613630d

Browse files
TumoiYorozuMark-Simulacrum
authored andcommitted
Fix URL encoding of % sign in Rust Doc.
1 parent c516249 commit 613630d

File tree

1 file changed

+0
-2
lines changed
  • src/librustdoc/html/render

1 file changed

+0
-2
lines changed

src/librustdoc/html/render/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,8 +1933,6 @@ pub(crate) fn small_url_encode(s: String) -> String {
19331933
// While the same is not true for hashes, rustdoc only needs to be
19341934
// consistent with itself when encoding them.
19351935
st += "+";
1936-
} else if b == b'%' {
1937-
st += "%%";
19381936
} else {
19391937
write!(st, "%{:02X}", b).unwrap();
19401938
}

0 commit comments

Comments
 (0)