Skip to content

Commit a1eeed1

Browse files
Steven LiuSteven Liu
authored andcommitted
fixed typo on UInt64
1 parent 9ae8129 commit a1eeed1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/UInt64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class UInt64 {
3838
*/
3939
public static fromUint(value: number): UInt64 {
4040
if (value < 0) {
41-
throw new Error('Unit value cannot be negative');
41+
throw new Error('Unsigned integer cannot be negative');
4242
}
4343
return new UInt64(uint64.fromUint(value));
4444
}

test/model/UInt64.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('Uint64', () => {
6767
it('should fromUnit throw exception with negative unit value', () => {
6868
expect(() => {
6969
UInt64.fromUint(-1);
70-
}).to.throw(Error, 'Unit value cannot be negative');
70+
}).to.throw(Error, 'Unsigned integer cannot be negative');
7171
});
7272

7373
describe('equal', () => {

0 commit comments

Comments
 (0)