Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Nov 22, 2024
1 parent b54f1f3 commit 590299a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function padding(bits: number, chr = '='): Coder<string[], string[]> {
return data;
},
decode(input: string[]): string[] {
astrArr('padding.encode', input);
astrArr('padding.decode', input);
let end = input.length;
if ((end * bits) % 8)
throw new Error('padding: invalid, string should have whole number of bytes');
Expand Down

0 comments on commit 590299a

Please sign in to comment.