Skip to content

Commit 5ca2175

Browse files
authored
Fix NumberParser partial number documentation to match tests (#2118)
1 parent aead179 commit 5ca2175

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@internationalized/number/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ parser.parse('10%')); // -> 0.1
2424
import {NumberParser} from '@internationalized/number';
2525

2626
let parser = new NumberParser('en-US', {style: 'unit', unit: 'inch'});
27-
parser.isValidPartialNumber('10 i')); // -> true
27+
parser.isValidPartialNumber('10 ')); // -> true
28+
parser.isValidPartialNumber('10 in')); // -> true
29+
parser.isValidPartialNumber('10 i')); // -> false
2830
parser.isValidPartialNumber('10 x')); // -> false
2931
```
3032

0 commit comments

Comments
 (0)