Fix URL encoding of % sign in Rust Doc.
This commit is contained in:
parent
caeea3f0a2
commit
7b55f08516
@ -1940,8 +1940,6 @@ fn dont_escape(c: u8) -> bool {
|
||||
// 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user