Skip to content

Commit 093a3cf

Browse files
y1d7ngbengl
authored andcommitted
doc: fix errors in Performance hooks doc
PR-URL: #43152 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
1 parent 1be254b commit 093a3cf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/api/perf_hooks.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ added: v16.7.0
6565
* `name` {string}
6666

6767
If `name` is not provided, removes all `PerformanceMeasure` objects from the
68-
Performance Timeline. If `name` is provided, removes only the named mark.
68+
Performance Timeline. If `name` is provided, removes only the named measure.
6969

7070
### `performance.clearResourceTimings([name])`
7171

@@ -196,7 +196,7 @@ changes:
196196
* `options` {Object}
197197
* `detail` {any} Additional optional detail to include with the mark.
198198
* `startTime` {number} An optional timestamp to be used as the mark time.
199-
**Defaults**: `performance.now()`.
199+
**Default**: `performance.now()`.
200200

201201
Creates a new `PerformanceMark` entry in the Performance Timeline. A
202202
`PerformanceMark` is a subclass of `PerformanceEntry` whose
@@ -210,9 +210,7 @@ and can be queried with `performance.getEntries`,
210210
observation is performed, the entries should be cleared from the global
211211
Performance Timeline manually with `performance.clearMarks`.
212212

213-
### \`performance.markResourceTiming(timingInfo, requestedUrl, initiatorType,
214-
215-
global, cacheMode)\`
213+
### `performance.markResourceTiming(timingInfo, requestedUrl, initiatorType, global, cacheMode)`
216214

217215
<!-- YAML
218216
added: v18.2.0

0 commit comments

Comments
 (0)