diff options
author | linbingquan <695601626@qq.com> | 2021-01-17 07:31:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 10:31:29 +1100 |
commit | fc45a19801fe32eaf3a82ab8333f433fcfd7ca4e (patch) | |
tree | e85a184b8eac1ee921299379c3d99a159db23e8b | |
parent | 69fb2b31b38c5267b5806d721e688d8f5b24eb67 (diff) |
docs(cli): correct example (#9136)
-rw-r--r-- | cli/dts/lib.deno.shared_globals.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index e72e4f089..0c18920a6 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -315,7 +315,7 @@ declare function setInterval( /** Cancels a timed, repeating action which was previously started by a call * to `setInterval()` * - * const id = setInterval(()= > {console.log('hello');}, 500); + * const id = setInterval(() => {console.log('hello');}, 500); * ... * clearInterval(id); */ @@ -323,7 +323,7 @@ declare function clearInterval(id?: number): void; /** Cancels a scheduled action initiated by `setTimeout()` * - * const id = setTimeout(()= > {console.log('hello');}, 500); + * const id = setTimeout(() => {console.log('hello');}, 500); * ... * clearTimeout(id); */ |