Skip to content

Commit af8a289

Browse files
authored
Fixed typos in src/ciphers/base64.rs (#941)
fixed typo issue
1 parent 6540508 commit af8a289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ciphers/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub fn base64_decode(data: &str) -> Result<Vec<u8>, (&str, u8)> {
6969
'decodeloop: loop {
7070
while collected_bits < 8 {
7171
if let Some(nextbyte) = databytes.next() {
72-
// Finds the first occurence of the latest byte
72+
// Finds the first occurrence of the latest byte
7373
if let Some(idx) = CHARSET.iter().position(|&x| x == nextbyte) {
7474
byte_buffer |= ((idx & 0b00111111) as u16) << (10 - collected_bits);
7575
collected_bits += 6;

0 commit comments

Comments
 (0)