From f543af19f5e49d23a83f311d07f0d733fb86ddb1 Mon Sep 17 00:00:00 2001 From: taevas Date: Mon, 24 Apr 2023 17:04:35 +0800 Subject: [PATCH] docs(roundrobinlist.js): fix usage push() returns the new length --- lib/roundrobinlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roundrobinlist.js b/lib/roundrobinlist.js index 3cdc4c6..b982a05 100644 --- a/lib/roundrobinlist.js +++ b/lib/roundrobinlist.js @@ -7,7 +7,7 @@ * list.next() ==> [1] * list.next(2) ==> [2, 3] * list.next(2) ==> [1, 2] - * list.add(5) ==> 5 + * list.add(5) ==> 4 * list.next(2) ==> [3, 5] */ class RoundRobinList {