Skip to content

Commit

Permalink
Correct error when assigning to OrderedCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Mar 22, 2023
1 parent 5162df0 commit 56b8643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realm/src/OrderedCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export abstract class OrderedCollection<T = unknown, EntryType extends [unknown,
*/
public set(index: number, value: T): void;
public set() {
throw new Error(`Assigning into a ${this.constructor.name} is not support`);
throw new Error(`Assigning into a ${this.constructor.name} is not supported`);
}

/**
Expand Down

0 comments on commit 56b8643

Please sign in to comment.