From 9c1f903d93e92d37e957805a42abc77ca3a56132 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 5 Sep 2022 11:26:54 +0900 Subject: [PATCH] fix: scripts comment typos (#40207) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) --- scripts/trace-dd.mjs | 2 +- scripts/trace-to-event-format.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/trace-dd.mjs b/scripts/trace-dd.mjs index 3b8336b70a36..a08c09c0fd75 100644 --- a/scripts/trace-dd.mjs +++ b/scripts/trace-dd.mjs @@ -99,7 +99,7 @@ const collectTraces = async (filePath, metadata) => { const traces = new Map() const rootTraces = [] - // Input trace file contains newline-seperated sets of traces, where each line is valid JSON + // Input trace file contains newline-separated sets of traces, where each line is valid JSON // type of Array. Read it line-by-line to manually reconstruct trace trees. // // We have to read through end of the trace - diff --git a/scripts/trace-to-event-format.mjs b/scripts/trace-to-event-format.mjs index 2361ed71129c..11652ebeaf3a 100644 --- a/scripts/trace-to-event-format.mjs +++ b/scripts/trace-to-event-format.mjs @@ -12,7 +12,7 @@ const createEvent = (trace, ph, cat) => ({ ph, // process id. We don't collect this for now, putting arbitrary numbers. pid: 1, - // thread id. We don't collect this for now, putting arbitrary numebers. + // thread id. We don't collect this for now, putting arbitrary numbers. tid: 10, args: trace.tags, }) @@ -112,7 +112,7 @@ const collectTraces = async (filePath, outFilePath, metadata) => { const traces = new Map() const rootTraces = [] - // Input trace file contains newline-seperated sets of traces, where each line is valid JSON + // Input trace file contains newline-separated sets of traces, where each line is valid JSON // type of Array. Read it line-by-line to manually reconstruct trace trees. // // We have to read through end of the trace -