Skip to content

Commit

Permalink
Fix typo in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Oct 6, 2024
1 parent 44324e9 commit 3f8ae53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/char.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ export function fromCodePoint(code: number) {
return String.fromCharCode((code >> 10) + 0xd800, (code & 1023) + 0xdc00)
}

/// The amount of positions a character takes up a JavaScript string.
/// The amount of positions a character takes up in a JavaScript string.
export function codePointSize(code: number): 1 | 2 { return code < 0x10000 ? 1 : 2 }

0 comments on commit 3f8ae53

Please sign in to comment.