Skip to content

Commit c9af409

Browse files
authored
Fix typo in README
1 parent fed5c79 commit c9af409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install via npm or yarn:
3131
npm install multi-integer-range
3232
```
3333

34-
Version 5 is a hybrid package; it provides both a CommonJS version and an ES Module version built from the same TypeScript source. Bundlers such as Webpack can automatically pick the ESM version and perform tree-shaking. This package has no external dependencies nor does it use any Node-specific API.
34+
Version 5 is a hybrid package; it provides both a CommonJS version and an ES Module version, built from the same TypeScript source. Bundlers such as Webpack can automatically pick the ESM version and perform tree-shaking. This package has no external dependencies nor does it use any Node-specific API.
3535

3636
🚨 The API style has changed drastically in version 5. The new API is slightly more verbose, but is simpler and tree-shakable 🌲. For example, if you don't use the default parser, your bundle will not include it. See the [CHANGELOG](./CHANGELOG.md) and the [docs for version 4](https://github.com/smikitky/node-multi-integer-range/tree/v4.0.9).
3737

@@ -148,7 +148,7 @@ All functions are _pure_; they do not change the input data nor do they have any
148148

149149
- `parse(data: string, options?: Options): MIR` Parses the given string. See below for the options.
150150
- `normalize(data?:(number | Range)[] | number): MIR` Normalizes the given number or the array of numbers/Ranges.
151-
- `initialize(data?: (number | Range)[] | number | string)`: Conditionally calls either `parse` or `normalize` and returns a new MultiIntegerRange. This takes an "Initializer" in version &lte; 4.
151+
- `initialize(data?: (number | Range)[] | number | string, options?: Options)`: Conditionally calls either `parse` or `normalize` and returns a new MultiIntegerRange. This takes an "Initializer" in version ≤ 4.
152152
- `append(a: MIR, b: MIR): MIR` Appends the two values.
153153
- `subtract(a: MIR, b: MIR): MIR` Subtracts `b` from `a`.
154154
- `intersect(a: MIR, b: MIR): MIR` Calculates the interesction, i.e., integers that belong to both `a` and `b`.

0 commit comments

Comments
 (0)