@@ -4,7 +4,7 @@ See: [`Console`](https://developer.mozilla.org/en-US/docs/Web/API/Console).
4
4
*/
5
5
6
6
/**
7
- `log(value)` outputs a message to console.
7
+ `log(value)` print a message to console.
8
8
See [`Console.log`](https://developer.mozilla.org/en-US/docs/Web/API/console/log)
9
9
on MDN.
10
10
@@ -70,7 +70,7 @@ Console.log5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
70
70
@val
71
71
external log5 : ('a , 'b , 'c , 'd , 'e ) => unit = "console.log"
72
72
/**
73
- `info(value)` outputs an informational message to console.
73
+ `info(value)` print an informational message to console.
74
74
See [`Console.info`](https://developer.mozilla.org/en-US/docs/Web/API/console/info)
75
75
on MDN.
76
76
@@ -137,7 +137,7 @@ Console.info5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
137
137
external info5 : ('a , 'b , 'c , 'd , 'e ) => unit = "console.info"
138
138
139
139
/**
140
- `warn(value)` outputs a warning message to console.
140
+ `warn(value)` print a warning message to console.
141
141
See [`Console.warn`](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)
142
142
on MDN.
143
143
@@ -204,7 +204,7 @@ Console.warn5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
204
204
external warn5 : ('a , 'b , 'c , 'd , 'e ) => unit = "console.warn"
205
205
206
206
/**
207
- `error(value)` outputs an error message to console.
207
+ `error(value)` prints an error message to console.
208
208
See [`Console.error`](https://developer.mozilla.org/en-US/docs/Web/API/console/error)
209
209
on MDN.
210
210
@@ -271,7 +271,7 @@ Console.error5(1, #second, #third, ("fourth"), 'c')
271
271
external error5 : ('a , 'b , 'c , 'd , 'e ) => unit = "console.error"
272
272
273
273
/**
274
- `trace()` outputs a stack trace to console.
274
+ `trace()` print a stack trace to console.
275
275
See [`Console.trace`](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)
276
276
on MDN.
277
277
@@ -291,10 +291,9 @@ main()
291
291
external trace : unit => unit = "console.trace"
292
292
293
293
/**
294
- `time(label)` starts a timer you can use to track how long an operation takes.
295
- You give each timer a unique name `label`, and may have up to 10,000 timers
296
- running on a given page. Call `Console.timeEnd` with the same `label` to browser
297
- output time, in milliseconds.
294
+ `time(label)` creates a timer to measure how long an operation takes. `label`
295
+ must be a unique name. Call `Console.timeEnd` with the same `label` to print
296
+ output time.
298
297
See [`Console.time`](https://developer.mozilla.org/en-US/docs/Web/API/console/time)
299
298
on MDN.
300
299
@@ -312,8 +311,8 @@ Console.timeEnd("for_time")
312
311
external time : string => unit = "console.time"
313
312
314
313
/**
315
- `timeEnd(label)` stops a timer that was previously started by calling
316
- `Console.time(label)`. See [`Console.timeEnd`](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)
314
+ `timeEnd(label)` stops a timer created by `time`.
315
+ See [`Console.timeEnd`](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)
317
316
on MDN.
318
317
319
318
## Examples
0 commit comments