Skip to content

Commit

Permalink
Merge pull request #11 from eyas-ranjous/readme
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
eyas-ranjous authored Feb 11, 2022
2 parents 8e12906 + e90d0b0 commit dde92e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.1] - 2022-feb-11
### Fixed
- readme

## [2.0.0] - 2022-feb-09
### Changed
- deleteByKey to delete item by its key
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An implementation of the round robin as a data structure. Two strategies are imp
* [API](#api)
* [import](#import)
* [constructor](#constructor)
* [add(item)](#additem)
* [add(value)](#addvalue)
* [count()](#count)
* [next()](#next)
* [deleteByKey(key)](#deletebykeykey)
Expand Down Expand Up @@ -52,7 +52,7 @@ import {
```

### constructor
constructor accepts an initial list of items that will be loaded internally and given unique keys.
accepts an initial list of values.

#### JS

Expand All @@ -61,7 +61,7 @@ constructor accepts an initial list of items that will be loaded internally and
<th align="center">params</th>
</tr>
<tr>
<td align="center">items: array</td>
<td align="center">values: array</td>
</tr>
</table>

Expand All @@ -78,7 +78,7 @@ const randomTable = new RandomRoundRobin([5, 10, 15]);
<th align="center">params</th>
</tr>
<tr>
<td align="center">items: T[]</td>
<td align="center">values: T[]</td>
</tr>
</table>

Expand All @@ -88,7 +88,7 @@ const sequentialTable = new SequentialRoundRobin<string>(['T1', 'T2', 'T3']);
const randomTable = new RandomRoundRobin<number>([5, 10, 15]);
```

### add(item)
### add(value)
adds a new item to the table.

#### JS
Expand All @@ -99,7 +99,7 @@ adds a new item to the table.
<th align="center">return</th>
</tr>
<tr>
<td align="center">item: any</td>
<td align="center">value: any</td>
<td align="center">object</td>
</tr>
</table>
Expand All @@ -120,7 +120,7 @@ console.log(key, value); // 3, 25
<th align="center">return</th>
</tr>
<tr>
<td align="center">item: T</td>
<td align="center">value: T</td>
<td align="center">RoundRobinItem&lt;T&gt;</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "round-robin-js",
"version": "2.0.0",
"version": "2.0.1",
"description": "an implementation of round robin as a data structure",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit dde92e6

Please sign in to comment.