diff --git a/bindings/nodejs/index.d.ts b/bindings/nodejs/index.d.ts index e0b2adecc0e..f0bde3fb7e7 100644 --- a/bindings/nodejs/index.d.ts +++ b/bindings/nodejs/index.d.ts @@ -201,7 +201,7 @@ export class Operator { * ### Example * ```javascript * const lister = await op.scan("/path/to/dir/"); - * while (true)) { + * while (true) { * const entry = await lister.next(); * if (entry === null) { * break; @@ -224,7 +224,7 @@ export class Operator { * ### Example * ```javascript * const lister = op.scan_sync(/path/to/dir/"); - * while (true)) { + * while (true) { * const entry = lister.next(); * if (entry === null) { * break; @@ -292,7 +292,7 @@ export class Operator { * ### Example * ```javascript * const lister = await op.list("path/to/dir/"); - * while (true)) { + * while (true) { * const entry = await lister.next(); * if (entry === null) { * break; @@ -315,7 +315,7 @@ export class Operator { * ### Example * ```javascript * const lister = op.listSync("path/to/dir/"); - * while (true)) { + * while (true) { * const entry = lister.next(); * if (entry === null) { * break; diff --git a/bindings/nodejs/src/lib.rs b/bindings/nodejs/src/lib.rs index 92c3f16bc93..a0dce9d0375 100644 --- a/bindings/nodejs/src/lib.rs +++ b/bindings/nodejs/src/lib.rs @@ -321,7 +321,7 @@ impl Operator { /// ### Example /// ```javascript /// const lister = await op.scan("/path/to/dir/"); - /// while (true)) { + /// while (true) { /// const entry = await lister.next(); /// if (entry === null) { /// break; @@ -346,7 +346,7 @@ impl Operator { /// ### Example /// ```javascript /// const lister = op.scan_sync(/path/to/dir/"); - /// while (true)) { + /// while (true) { /// const entry = lister.next(); /// if (entry === null) { /// break; @@ -426,7 +426,7 @@ impl Operator { /// ### Example /// ```javascript /// const lister = await op.list("path/to/dir/"); - /// while (true)) { + /// while (true) { /// const entry = await lister.next(); /// if (entry === null) { /// break; @@ -451,7 +451,7 @@ impl Operator { /// ### Example /// ```javascript /// const lister = op.listSync("path/to/dir/"); - /// while (true)) { + /// while (true) { /// const entry = lister.next(); /// if (entry === null) { /// break;