Skip to content

Commit c43beaf

Browse files
aspeddrozth
authored andcommitted
rewrite some comments
1 parent 4c92796 commit c43beaf

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/Core__Console.resi

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ See: [`Console`](https://developer.mozilla.org/en-US/docs/Web/API/Console).
44
*/
55

66
/**
7-
`log(value)` outputs a message to console.
7+
`log(value)` print a message to console.
88
See [`Console.log`](https://developer.mozilla.org/en-US/docs/Web/API/console/log)
99
on MDN.
1010
@@ -70,7 +70,7 @@ Console.log5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
7070
@val
7171
external log5: ('a, 'b, 'c, 'd, 'e) => unit = "console.log"
7272
/**
73-
`info(value)` outputs an informational message to console.
73+
`info(value)` print an informational message to console.
7474
See [`Console.info`](https://developer.mozilla.org/en-US/docs/Web/API/console/info)
7575
on MDN.
7676
@@ -137,7 +137,7 @@ Console.info5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
137137
external info5: ('a, 'b, 'c, 'd, 'e) => unit = "console.info"
138138

139139
/**
140-
`warn(value)` outputs a warning message to console.
140+
`warn(value)` print a warning message to console.
141141
See [`Console.warn`](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)
142142
on MDN.
143143
@@ -204,7 +204,7 @@ Console.warn5([1, 2], (3, 4), [#5, #6], #"polyvar", {"name": "ReScript"})
204204
external warn5: ('a, 'b, 'c, 'd, 'e) => unit = "console.warn"
205205

206206
/**
207-
`error(value)` outputs an error message to console.
207+
`error(value)` prints an error message to console.
208208
See [`Console.error`](https://developer.mozilla.org/en-US/docs/Web/API/console/error)
209209
on MDN.
210210
@@ -271,7 +271,7 @@ Console.error5(1, #second, #third, ("fourth"), 'c')
271271
external error5: ('a, 'b, 'c, 'd, 'e) => unit = "console.error"
272272

273273
/**
274-
`trace()` outputs a stack trace to console.
274+
`trace()` print a stack trace to console.
275275
See [`Console.trace`](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)
276276
on MDN.
277277
@@ -291,10 +291,9 @@ main()
291291
external trace: unit => unit = "console.trace"
292292

293293
/**
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.
298297
See [`Console.time`](https://developer.mozilla.org/en-US/docs/Web/API/console/time)
299298
on MDN.
300299
@@ -312,8 +311,8 @@ Console.timeEnd("for_time")
312311
external time: string => unit = "console.time"
313312

314313
/**
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)
317316
on MDN.
318317
319318
## Examples

0 commit comments

Comments
 (0)