Skip to content

Commit f3b6245

Browse files
ranma42dylhunn
authored andcommitted
refactor: fix a number of typos throughout the codebase (#55018)
Fix some typos detected using spellchecking tools, both in documentation and in code (comments, identifiers). PR Close #55018
1 parent 42eab69 commit f3b6245

File tree

25 files changed

+45
-45
lines changed

25 files changed

+45
-45
lines changed

adev/src/app/editor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The following steps are executed on project change:
115115
5. The previous project dependencies are compared with the new project dependencies.
116116
1. If there are differences, a `npm install` is triggered, hiding the preview and going to the install loading step.
117117
2. If there are no differences, the project is ready.
118-
6. Some states are resetted, for example the "reveal answer" state if the previous project was in the "reveal answer" state.
118+
6. Some states are reset, for example the "reveal answer" state if the previous project was in the "reveal answer" state.
119119

120120
## Components and services
121121

@@ -200,7 +200,7 @@ Responsible for handling the download button in the embedded editor, fetching th
200200

201201
#### [`AlertManager`](./alert-manager.service.ts)
202202

203-
Manage the alerts displayed in the embedded editor, being the out of memory alert when multiple tabs are opened, and unsupported enviroments alerts.
203+
Manage the alerts displayed in the embedded editor, being the out of memory alert when multiple tabs are opened, and unsupported environments alerts.
204204

205205
#### [`TypingsLoader`](./typings-loader.service.ts)
206206

adev/src/app/features/tutorial/tutorial.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FakeDocViewer {
4141
@Input('documentFilePath') documentFilePath: string | undefined;
4242
}
4343

44-
// TODO: export this class, it's a helpfull mock we could you on other tests.
44+
// TODO: export this class, it's a helpful mock we could you on other tests.
4545
class FakeNodeRuntimeSandbox {
4646
loadingStep = signal(0);
4747
previewUrl$ = of();

adev/src/content/reference/migrations/control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[Control flow syntax](guide/templates/control-flow) is available from Angular 17 and simplified way to use the control-flow directives like *ngFor, *ngIf and *ngSwitch.
55

6-
The new syntax is baked into the template, so you don't need to import `CommonModule` anymore. But wait there is more to it, there is an migration availble for migrating all your old code to use new Control Flow Syntax with Angular 17 release. Run the schematic with the following command:
6+
The new syntax is baked into the template, so you don't need to import `CommonModule` anymore. But wait there is more to it, there is an migration available for migrating all your old code to use new Control Flow Syntax with Angular 17 release. Run the schematic with the following command:
77

88
<docs-code language="shell">
99

aio/content/examples/rx-library/e2e/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This example project is special in that it is not a cli app. To run tests appropriate for this
3-
* project, the test command is overwritten in `aio/content/examples/rx-libary/example-config.json`.
3+
* project, the test command is overwritten in `aio/content/examples/rx-library/example-config.json`.
44
*
55
* This is an empty placeholder file to ensure that `aio/tools/examples/run-example-e2e.mjs` runs
66
* tests for this project.

aio/content/guide/devtools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Then, import the file in the initial view of the profiler by clicking the **Choo
259259

260260
### View the injector hierarchy of your application
261261

262-
The **Injector Tree** tab lets you explore the structure of the Injectors configured in your application. Here you will see two trees representing the [injector hiearchy](guide/hierarchical-dependency-injection) of your application. One tree is your environment hierarchy, the other is your element hierachy.
262+
The **Injector Tree** tab lets you explore the structure of the Injectors configured in your application. Here you will see two trees representing the [injector hierarchy](guide/hierarchical-dependency-injection) of your application. One tree is your environment hierarchy, the other is your element hierarchy.
263263

264264
<div class="lightbox">
265265

@@ -269,7 +269,7 @@ The **Injector Tree** tab lets you explore the structure of the Injectors config
269269

270270
### Visualize resolution paths
271271

272-
When a specific injector is selected, the path that Angular's depenedency injection algorithm traverses from that injector to the root is highlighted. For element injectors, this includes highlighting the environment injectors that the dependency injection algorithm jumps to when a dependency cannot be resolved in the element hierarchy. See [resolution rules](guide/hierarchical-dependency-injection#resolution-rules) for more details about how Angular resolves resolution paths.
272+
When a specific injector is selected, the path that Angular's dependency injection algorithm traverses from that injector to the root is highlighted. For element injectors, this includes highlighting the environment injectors that the dependency injection algorithm jumps to when a dependency cannot be resolved in the element hierarchy. See [resolution rules](guide/hierarchical-dependency-injection#resolution-rules) for more details about how Angular resolves resolution paths.
273273

274274
<div class="lightbox">
275275

aio/content/guide/esbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If the `application` builder is difficult for your project to adopt, `browser-es
4141

4242
A builder named `browser-esbuild` is available within the `@angular-devkit/build-angular` package that is present in an Angular CLI generated application. The builder is a drop-in replacement for the existing `browser` builder that provides the preexisting browser application build system.
4343

44-
The compatiblity option was implemented to minimize the amount of changes necessary to initially migrate your applications.
44+
The compatibility option was implemented to minimize the amount of changes necessary to initially migrate your applications.
4545
This is provided via an alternate builder (`browser-esbuild`).
4646
You can update the `build` target for any application target to migrate to the new build system.
4747

packages/common/http/test/fetch_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ describe('FetchBackend', async () => {
233233

234234
it('handles a blob with a mime type', async () => {
235235
const promise = trackEvents(backend.handle(TEST_POST.clone({responseType: 'blob'})));
236-
const type = 'aplication/pdf';
236+
const type = 'application/pdf';
237237
fetchMock.mockFlush(HttpStatusCode.Ok, 'OK', new Blob(), {'Content-Type': type});
238238
const events = await promise;
239239
expect(events.length).toBe(2);

packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ class TcbIfOp extends TcbOp {
14451445
expression = expressionScope.resolve(branch.expressionAlias);
14461446
}
14471447

1448-
// The expressions of the preceeding branches have to be negated
1448+
// The expressions of the preceding branches have to be negated
14491449
// (e.g. `expr` becomes `!(expr)`) when comparing in the guard, except
14501450
// for the branch's own expression which is preserved as is.
14511451
const comparisonExpression = i === index ?
@@ -1486,7 +1486,7 @@ class TcbSwitchOp extends TcbOp {
14861486
const comparisonExpression = tcbExpression(this.block.expression, this.tcb, this.scope);
14871487
markIgnoreDiagnostics(comparisonExpression);
14881488

1489-
// Wrap the comparisson expression in parentheses so we don't ignore
1489+
// Wrap the comparison expression in parentheses so we don't ignore
14901490
// diagnostics when comparing incompatible types (see #52315).
14911491
const expression = ts.factory.createParenthesizedExpression(comparisonExpression);
14921492
const root = this.generateCase(0, expression, null);
@@ -2326,13 +2326,13 @@ class TcbExpressionTranslator {
23262326
* context). This method assists in resolving those.
23272327
*/
23282328
protected resolve(ast: AST): ts.Expression|null {
2329-
// TODO: this is actually a bug, because `ImpliticReceiver` extends `ThisReceiver`. Consider a
2329+
// TODO: this is actually a bug, because `ImplicitReceiver` extends `ThisReceiver`. Consider a
23302330
// case when the explicit `this` read is inside a template with a context that also provides the
23312331
// variable name being read:
23322332
// ```
23332333
// <ng-template let-a>{{this.a}}</ng-template>
23342334
// ```
2335-
// Clearly, `this.a` should refer to the class property `a`. However, becuase of this code,
2335+
// Clearly, `this.a` should refer to the class property `a`. However, because of this code,
23362336
// `this.a` will refer to `let-a` on the template context.
23372337
//
23382338
// Note that the generated code is actually consistent with this bug. To fix it, we have to:

packages/compiler-cli/test/ngtsc/ngtsc_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9328,8 +9328,8 @@ function allTests(os: string) {
93289328
kind: ts.SyntaxKind.MultiLineCommentTrivia,
93299329
text: `*
93309330
* @fileoverview Closure comment
9331-
* @supress bla1
9332-
* @supress bla2
9331+
* @suppress bla1
9332+
* @suppress bla2
93339333
`,
93349334
pos: -1,
93359335
end: -1,

packages/compiler/src/render3/view/t2_binder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,9 @@ export class R3BoundTarget<DirectiveT extends DirectiveMeta> implements BoundTar
908908
private findEntityInScope(rootNode: ScopedNode, name: string): Reference|Variable|null {
909909
const entities = this.getEntitiesInScope(rootNode);
910910

911-
for (const entitity of entities) {
912-
if (entitity.name === name) {
913-
return entitity;
911+
for (const entity of entities) {
912+
if (entity.name === name) {
913+
return entity;
914914
}
915915
}
916916

0 commit comments

Comments
 (0)