Skip to content

Commit 8022af1

Browse files
JacksonGLfacebook-github-bot
authored andcommitted
fix(all): fix some typos
Summary: see title Reviewed By: twobassdrum Differential Revision: D78793867 fbshipit-source-id: e96b52a6c0b0101b67a31b77e2ab6e9d00e84524
1 parent 0ac4d02 commit 8022af1

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Features:
2525
API, and memlab will automatically compare JavaScript heap snapshots, filter
2626
out memory leaks, and aggregate the results
2727
- **Object-oriented heap traversing API** - Supports the creation of
28-
self-defined memory leak detector, and enables programmatic analysis JS heap
28+
self-defined memory leak detector, and enables programmatic analysis of JS heap
2929
snapshots taken from Chromium-based browsers, Node.js, Electron.js, and Hermes
3030
- **Memory CLI toolbox** - Built-in toolbox and APIs for finding memory
3131
optimization opportunities (not necessarily just memory leaks)

packages/core/src/lib/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ function checkScenarioInstance(s: AnyValue): IScenario {
671671
typeof s.beforeInitialPageLoad !== 'function') ||
672672
(s.setup && typeof s.setup !== 'function')
673673
) {
674-
throw new Error('Invalid senario');
674+
throw new Error('Invalid scenario');
675675
}
676676
return s as IScenario;
677677
}

packages/memlab/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Features:
1515
API, and memlab will automatically compare JavaScript heap snapshots, filter
1616
out memory leaks, and aggregate the results
1717
- **Object-oriented heap traversing API** - Supports the creation of
18-
self-defined memory leak detector, and enables programmatic analysis JS heap
18+
self-defined memory leak detector, and enables programmatic analysis of JS heap
1919
snapshots taken from Chromium-based browsers, Node.js, Electron.js, and Hermes
2020
- **Memory CLI toolbox** - Built-in toolbox and APIs for finding memory
2121
optimization opportunities (not necessarily just memory leaks)

website/docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 2
44

55
# Getting Started
66
In this section, you will learn how to use memlab to detect a memory leak.
7-
Please make sure you have completed a [installation](./installation.md)
7+
Please make sure you have completed the [installation](./installation.md)
88
step in your local machine. We start with defining the scenario file where we
99
specify how memlab should interact with our page.
1010

@@ -56,7 +56,7 @@ It is highly recommended that the web app under test serves unminified code,
5656
which makes the retainer trace and symbols in leak report easier to understand.
5757
:::
5858

59-
memlab will lively update a breadcrumb showing the progress of interaction
59+
memlab will live-update a breadcrumb showing the progress of interaction
6060
with the target web page:
6161

6262
```bash

website/docs/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Other features provided by memlab:
3636
* **Memory CLI toolbox** - Built-in [CLI toolbox](./cli/CLI-commands.md#memlab-analyze)
3737
and [APIs](./api/classes/heap_analysis_src.BaseAnalysis.md) for finding memory
3838
optimization opportunities (not necessarily memory leaks)
39-
* **Memory assertions in Node.js** - Enables unit test or running node.js
40-
program to take a heap snapshot of its own state, do self memory checking,
39+
* **Memory assertions in Node.js** - Enables unit tests or running node.js
40+
programs to take a heap snapshot of their own state, do self memory checking,
4141
and write memory assertions
4242
([doc](./api/interfaces/core_src.IHeapSnapshot.md#hasobjectwithclassnameclassname))
4343

website/src/lib/TypeSpeedNormalization.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @oncall memory_lab
99
*/
1010

11-
// all characters that needs to press SHIFT first
11+
// all characters that need SHIFT to be pressed first
1212
const shiftCharacters = new Set('~!@#$%^&*()_+{}:"<>?|'.split(''));
1313

1414
/**
@@ -35,7 +35,7 @@ module.exports = function normalizeTypeSpeed(events, speedFactor = 1) {
3535
deltas[i] = 1000;
3636
}
3737

38-
// speed up the empty space, which feel more natural
38+
// speed up the empty space, which feels more natural
3939
} else if (content === ' ') {
4040
deltas[i] = 30;
4141

0 commit comments

Comments
 (0)