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 7c1542b commit b646a47Copy full SHA for b646a47
src/ciphers/base64.rs
@@ -69,7 +69,7 @@ pub fn base64_decode(data: &str) -> Result<Vec<u8>, (&str, u8)> {
69
'decodeloop: loop {
70
while collected_bits < 8 {
71
if let Some(nextbyte) = databytes.next() {
72
- // Finds the first occurence of the latest byte
+ // Finds the first occurrence of the latest byte
73
if let Some(idx) = CHARSET.iter().position(|&x| x == nextbyte) {
74
byte_buffer |= ((idx & 0b00111111) as u16) << (10 - collected_bits);
75
collected_bits += 6;
0 commit comments