Skip to content

Commit

Permalink
docs(cli): correct example (#9136)
Browse files Browse the repository at this point in the history
  • Loading branch information
linbingquan authored Jan 16, 2021
1 parent 69fb2b3 commit fc45a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/dts/lib.deno.shared_globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,15 @@ 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);
*/
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);
*/
Expand Down

0 comments on commit fc45a19

Please sign in to comment.