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 2de8265 commit 0c7735aCopy full SHA for 0c7735a
src/http/percent_encoding.rs
@@ -3,7 +3,7 @@ use crate::tracker::peer::{self, IdConversionError};
3
4
/// # Errors
5
///
6
-/// Will return `Err` if if the decoded bytes do not represent a valid `InfoHash`.
+/// Will return `Err` if the decoded bytes do not represent a valid `InfoHash`.
7
pub fn percent_decode_info_hash(raw_info_hash: &str) -> Result<InfoHash, ConversionError> {
8
let bytes = percent_encoding::percent_decode_str(raw_info_hash).collect::<Vec<u8>>();
9
InfoHash::try_from(bytes)
0 commit comments