From 0ff48a126689f326e2279a60bbd6986657dc28b7 Mon Sep 17 00:00:00 2001 From: onlyflix Date: Mon, 26 Nov 2018 09:53:00 +0100 Subject: [PATCH] style: change to American English (#27266) PR Close #27266 --- aio/content/guide/aot-compiler.md | 2 +- .../animations/browser/src/dsl/animation_ast_builder.ts | 2 +- packages/compiler-cli/src/ngcc/README.md | 2 +- packages/core/test/render3/content_spec.ts | 2 +- packages/core/test/render3/query_spec.ts | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index dd0bed2019..339798e416 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -1508,7 +1508,7 @@ done manually. When `true`, this option tells the compiler not to check the TypeScript version. The compiler will skip checking and will not error out when an unsupported version of TypeScript is used. -Setting this option to `true` is not recommended because unsupported versions of TypeScript might have undefined behaviour. +Setting this option to `true` is not recommended because unsupported versions of TypeScript might have undefined behavior. This option is `false` by default. diff --git a/packages/animations/browser/src/dsl/animation_ast_builder.ts b/packages/animations/browser/src/dsl/animation_ast_builder.ts index 841bfd378b..f225491baf 100644 --- a/packages/animations/browser/src/dsl/animation_ast_builder.ts +++ b/packages/animations/browser/src/dsl/animation_ast_builder.ts @@ -26,7 +26,7 @@ const SELF_TOKEN_REGEX = new RegExp(`\s*${SELF_TOKEN}\s*,?`, 'g'); * * 1. Overlap of animations * Given that a CSS property cannot be animated in more than one place at the same time, it's - * important that this behaviour is detected and validated. The way in which this occurs is that + * important that this behavior is detected and validated. The way in which this occurs is that * each time a style property is examined, a string-map containing the property will be updated with * the start and end times for when the property is used within an animation step. * diff --git a/packages/compiler-cli/src/ngcc/README.md b/packages/compiler-cli/src/ngcc/README.md index a6a08170d3..10bb08fac0 100644 --- a/packages/compiler-cli/src/ngcc/README.md +++ b/packages/compiler-cli/src/ngcc/README.md @@ -23,7 +23,7 @@ yarn bazel test //packages/compiler-cli/src/ngcc/test ## Integration Testing -There are tests that check the behaviour of the overall executable: +There are tests that check the behavior of the overall executable: ```bash yarn bazel test //packages/compiler-cli/test/ngcc diff --git a/packages/core/test/render3/content_spec.ts b/packages/core/test/render3/content_spec.ts index 6180051949..6c81497191 100644 --- a/packages/core/test/render3/content_spec.ts +++ b/packages/core/test/render3/content_spec.ts @@ -1114,7 +1114,7 @@ describe('content projection', () => { * being re-assigned from one parent to another. Proposal: have compiler * to remove all but the latest occurrence of so we generate * only one P(n, m, 0) instruction. It would make it consistent with the - * current Angular behaviour: + * current Angular behavior: * http://plnkr.co/edit/OAYkNawTDPkYBFTqovTP?p=preview */ it('should project nodes into the last available ng-content', () => { diff --git a/packages/core/test/render3/query_spec.ts b/packages/core/test/render3/query_spec.ts index ba1c172e27..7705a96a59 100644 --- a/packages/core/test/render3/query_spec.ts +++ b/packages/core/test/render3/query_spec.ts @@ -553,13 +553,13 @@ describe('query', () => { }); /** - * BREAKING CHANGE: this tests asserts different behaviour as compared to Renderer2 when it + * BREAKING CHANGE: this tests asserts different behavior as compared to Renderer2 when it * comes to descendants: false option and . * - * Previous behaviour: queries with descendants: false would descend into . - * New behaviour: queries with descendants: false would NOT descend into . + * Previous behavior: queries with descendants: false would descend into . + * New behavior: queries with descendants: false would NOT descend into . * - * Reasoning: the Renderer2 behaviour is inconsistent and hard to explain to users when it + * Reasoning: the Renderer2 behavior is inconsistent and hard to explain to users when it * comes to descendants: false interpretation (see * https://github.com/angular/angular/issues/14769#issuecomment-356609267) so we are changing * it in ngIvy.