Skip to content

Commit

Permalink
Fix and Add Missing Import Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Hurlburt committed May 25, 2017
1 parent 984dae1 commit 5e8dcb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ npm install --save qc-to_num
## Example Usage

```js
import { toNum } from 'qc-to_num';
import { toNum, toNumOrNull } from 'qc-to_num';

toNum('+3.1459'); // `3.1459`
toNum('2'); // `2`
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* 4) Correctly handles `'-0'` which returns `0' instead of `-0`.
*
* ```js
* import { toNum, toNumOrNull } from 'qc-to_num';
*
* toNum('+3.1459'); // `3.1459`
* toNum('2'); // `2`
* toNum(2.6); // `2.6`
Expand Down

0 comments on commit 5e8dcb4

Please sign in to comment.