Americanise spellings (#33323)

Updates documentation and non-public API to use American spellings for
consistency with the rest of the codebase.

No changes to behaviour... other than how it's spelt.
This commit is contained in:
Chris Bracken
2019-05-24 19:13:02 -07:00
committed by GitHub
parent 4d9923201b
commit 156b4220b4
26 changed files with 51 additions and 51 deletions

View File

@@ -494,7 +494,7 @@ class MemoryTest {
await receivedNextMessage;
}
/// To change the behaviour of the test, override this.
/// To change the behavior of the test, override this.
///
/// Make sure to call recordStart() and recordEnd() once each in that order.
///

View File

@@ -52,8 +52,8 @@ are interpolated, in order to display it nicely.
There is currently one skeleton for
[application](config/skeletons/application.html) snippets and one for
[sample](config/skeletons/sample.html)
snippets, but there could be more. It uses moustache notation (e.g. `{{code}}`)
snippets, but there could be more. It uses mustache notation (e.g. `{{code}}`)
to mark where the components to be interpolated into the template should go.
(It doesn't actually use the moustache package, since the only things that need
substituting are simple strings, but it uses the same syntax).
(It doesn't actually use the mustache package, since the only things that need
substituting are simple strings, but it uses the same syntax).

View File

@@ -82,7 +82,7 @@ class SnippetGenerator {
return description.join('\n').trim();
} else {
// If the match isn't found in the injections, then just remove the
// moustache reference, since we want to allow the sections to be
// mustache reference, since we want to allow the sections to be
// "optional" in the input: users shouldn't be forced to add an empty
// "```dart preamble" section if that section would be empty.
return injections