Skip to content

Commit

Permalink
Indicate that isPositive includes zero, fixes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Oct 30, 2021
1 parent 45f1f37 commit d901220
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -163,7 +163,7 @@ API
Tests if this Long's value is odd.

* Long#**isPositive**(): `boolean`<br />
Tests if this Long's value is positive.
Tests if this Long's value is positive or zero.

* Long#**isZero**/**eqz**(): `boolean`<br />
Tests if this Long's value equals zero.
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -210,7 +210,7 @@ declare class Long {
isOdd(): boolean;

/**
* Tests if this Long's value is positive.
* Tests if this Long's value is positive or zero.
*/
isPositive(): boolean;

Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -599,7 +599,7 @@ LongPrototype.isNegative = function isNegative() {
};

/**
* Tests if this Long's value is positive.
* Tests if this Long's value is positive or zero.
* @this {!Long}
* @returns {boolean}
*/
Expand Down

0 comments on commit d901220

Please sign in to comment.