Skip to content

Commit

Permalink
fix(http): typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Feb 23, 2023
1 parent 2de8265 commit 0c7735a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/percent_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::tracker::peer::{self, IdConversionError};

/// # Errors
///
/// 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`.
pub fn percent_decode_info_hash(raw_info_hash: &str) -> Result<InfoHash, ConversionError> {
let bytes = percent_encoding::percent_decode_str(raw_info_hash).collect::<Vec<u8>>();
InfoHash::try_from(bytes)
Expand Down

0 comments on commit 0c7735a

Please sign in to comment.