Skip to content

Commit d145aa2

Browse files
📚 docs: Rename Boolean to boolean in docstrings.
1 parent 430ea18 commit d145aa2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/types/Leaf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Leaf(parent) {
2020
* Returns <code>true</code> if the <code>Leaf</code> object is a leaf. This
2121
* always returns <code>true</code>.
2222
*
23-
* @returns {Boolean}
23+
* @returns {boolean}
2424
*/
2525
Leaf.prototype.isLeaf = function () {
2626
return true;

src/types/Node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Node(color, key) {
2424
* Returns <code>true</code> if the <code>Node</code> object is a leaf. This
2525
* always returns <code>false</code>.
2626
*
27-
* @returns {Boolean}
27+
* @returns {boolean}
2828
*/
2929
Node.prototype.isLeaf = function () {
3030
return false;

src/types/RedBlackTree.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class RedBlackTree {
8383
* key.
8484
*
8585
* @param {any} key - The input key.
86-
* @returns {Boolean}
86+
* @returns {boolean}
8787
*/
8888
has(key) {
8989
return this._search(key) !== null;
@@ -130,7 +130,7 @@ export default class RedBlackTree {
130130
* then return <code>true</code>. Return <code>false</code> otherwise.
131131
*
132132
* @param {any} key - The input key.
133-
* @returns {Boolean} - Whether the key existed in the tree before removal.
133+
* @returns {boolean} - Whether the key existed in the tree before removal.
134134
*/
135135
remove(key) {
136136
const node = this._search(key);

0 commit comments

Comments
 (0)