Skip to content

Commit cadb923

Browse files
Make StringSet.empty readonly (fix)
1 parent 4617edf commit cadb923

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/string-set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class StringSet {
6363
this._caseFolding = caseFolding;
6464
}
6565

66-
static empty = new StringSet([], noopCaseFolding);
66+
static readonly empty = new StringSet([], noopCaseFolding);
6767

6868
static from(words: Iterable<ReadonlyWord>, caseFolding: CharCaseFolding): StringSet {
6969
const items = [...words];

0 commit comments

Comments
 (0)