Skip to content

Commit

Permalink
Fix URL encoding of % sign in Rust Doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
TumoiYorozu committed Jun 13, 2023
1 parent caeea3f commit 7b55f08
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1940,8 +1940,6 @@ pub(crate) fn small_url_encode(s: String) -> String {
// While the same is not true for hashes, rustdoc only needs to be
// consistent with itself when encoding them.
st += "+";
} else if b == b'%' {
st += "%%";
} else {
write!(st, "%{:02X}", b).unwrap();
}
Expand Down

0 comments on commit 7b55f08

Please sign in to comment.