Skip to content

Commit c8df9d4

Browse files
authored
Merge pull request #4 from eyas-ranjous/dev
typo
2 parents 79cab1a + 564a6b2 commit c8df9d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![build:?](https://travis-ci.org/eyas-ranjous/round-robin-js.svg?branch=main)](https://travis-ci.org/eyas-ranjous/round-robin-js) [![npm](https://img.shields.io/npm/v/round-robin-js.svg)](https://www.npmjs.com/package/round-robin-js) [![npm](https://img.shields.io/npm/dm/round-robin-js.svg)](https://www.npmjs.com/package/round-robin-js) [![npm](https://img.shields.io/badge/node-%3E=%206.0-blue.svg)](https://www.npmjs.com/package/round-robin-js)
44

5-
An implementation of the round robin as a data structure. Two strategies are implemented to select the next item in the round, a Sequential one that selects the next item based on insertion order, and a Random one that select the next item randomly.
5+
An implementation of the round robin as a data structure. Two strategies are implemented to select the next item in the round, a Sequential one that selects the next item based on the order of insertion, and a Random one that selects the next item randomly.
66

77
# Contents
88
* [Install](#install)
@@ -132,7 +132,7 @@ console.log(item); // { key: 3, value: 'T4' }
132132
```
133133

134134
### count()
135-
returns the number of items in the round.
135+
returns the number of items in the table.
136136

137137
<table>
138138
<tr>
@@ -181,7 +181,7 @@ console.log(randomRound.next()); // { key: 2, value: 'T3' }
181181
```
182182

183183
### completedRounds()
184-
returns the number of finished rounds.
184+
returns the number of completed rounds.
185185

186186
<table>
187187
<tr>
@@ -199,7 +199,7 @@ console.log(randomRound.completedRounds()); // 1
199199
```
200200

201201
### delete(key)
202-
deletes an item from the round by its key.
202+
deletes an item from the table by its key.
203203

204204
<table>
205205
<tr>
@@ -238,7 +238,7 @@ console.log(randomTable.completedRounds()); // 0
238238
```
239239

240240
### clear()
241-
clears the table from all values.
241+
clears all values in the table.
242242

243243
```js
244244
sequentialTable.clear();

0 commit comments

Comments
 (0)