1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

docs(cli): correct example (#9136)

This commit is contained in:
linbingquan 2021-01-17 07:31:29 +08:00 committed by GitHub
parent 69fb2b31b3
commit fc45a19801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
*/