Skip to content

Commit

Permalink
Fix typo hexidecimal/hexadecimal
Browse files Browse the repository at this point in the history
Spotted by debian lintian checks
  • Loading branch information
LocutusOfBorg committed Mar 17, 2016
1 parent 3070ca2 commit 2b7b52f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Release/src/uri/uri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static int hex_char_digit_to_decimal_char(int hex)
}
else
{
throw uri_exception("Invalid hexidecimal digit");
throw uri_exception("Invalid hexadecimal digit");
}
return decimal;
}
Expand All @@ -240,12 +240,12 @@ utility::string_t uri::decode(const utility::string_t &encoded)
{
if(++iter == encoded.end())
{
throw uri_exception("Invalid URI string, two hexidecimal digits must follow '%'");
throw uri_exception("Invalid URI string, two hexadecimal digits must follow '%'");
}
int decimal_value = hex_char_digit_to_decimal_char(static_cast<int>(*iter)) << 4;
if(++iter == encoded.end())
{
throw uri_exception("Invalid URI string, two hexidecimal digits must follow '%'");
throw uri_exception("Invalid URI string, two hexadecimal digits must follow '%'");
}
decimal_value += hex_char_digit_to_decimal_char(static_cast<int>(*iter));

Expand Down

0 comments on commit 2b7b52f

Please sign in to comment.