repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3db6a2b
)
docs: fix queue code comment
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 4 May 2023 22:41:18 +0000
(
00:41
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 4 May 2023 22:41:18 +0000
(
00:41
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/queue.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/queue.ts
b/src/queue.ts
index a2a613814e86dcd5ab13b7122d8c26a7e647d610..ab606547b1f77fb08ab6b203e0053ad182b481e6 100644
(file)
--- a/
src/queue.ts
+++ b/
src/queue.ts
@@
-41,8
+41,7
@@
export class Queue<T> {
/**
* Dequeue an item.
*
- * @returns The dequeued item.
- * @returns `undefined` if the queue is empty.
+ * @returns The dequeued item or `undefined` if the queue is empty.
*/
public dequeue (): T | undefined {
if (this.size <= 0) return undefined