Fix backwards logic on overlapping ranges comment

This commit is contained in:
Jason Rhinelander 2021-08-20 15:45:03 -03:00
parent 45f358ab5f
commit ae884d2f13
3 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ constexpr bool is_base32z(std::string_view s) { return is_base32z<>(s); }
/// Converts a sequence of base32z digits to bytes. Undefined behaviour if any characters are not
/// valid base32z alphabet characters. It is permitted for the input and output ranges to overlap
/// as long as `out` is no earlier than `begin`. Note that if you pass in a sequence that could not
/// as long as `out` is no later than `begin`. Note that if you pass in a sequence that could not
/// have been created by a base32z encoding of a byte sequence, we treat the excess bits as if they
/// were not provided.
///

View File

@ -165,7 +165,7 @@ constexpr bool is_base64(std::string_view s) { return is_base64(s.begin(), s.end
/// Converts a sequence of base64 digits to bytes. Undefined behaviour if any characters are not
/// valid base64 alphabet characters. It is permitted for the input and output ranges to overlap as
/// long as `out` is no earlier than `begin`. Trailing padding characters are permitted but not
/// long as `out` is no later than `begin`. Trailing padding characters are permitted but not
/// required.
///
/// It is possible to provide "impossible" base64 encoded values; for example "YWJja" which has 30

View File

@ -131,7 +131,7 @@ constexpr char from_hex_pair(unsigned char a, unsigned char b) noexcept { return
/// Converts a sequence of hex digits to bytes. Undefined behaviour if any characters are not in
/// [0-9a-fA-F] or if the input sequence length is not even: call `is_hex` first if you need to
/// check. It is permitted for the input and output ranges to overlap as long as out is no earlier
/// check. It is permitted for the input and output ranges to overlap as long as out is no later
/// than begin.
template <typename InputIt, typename OutputIt>
void from_hex(InputIt begin, InputIt end, OutputIt out) {