Skip to content

Commit 0f1ff3b

Browse files
authored
Correct typos, adopt US spellings (flutter#9081)
Corects a bnuch of typeos throughout teh engien codebsae. Also makes a couple minor Commonwealth -> US spelling adjustments for consistency with the rest of Flutter's codebase. Made use of `misspell` tool: https://github.com/client9/misspell
1 parent 651c904 commit 0f1ff3b

File tree

43 files changed

+66
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+66
-64
lines changed

ci/licenses.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ then
3636
echo "changed, no diffs are typically expected in the output of the"
3737
echo "script. Verify the output, and if it looks correct, update the"
3838
echo "license tool signature golden file:"
39-
echo " ci/licences_golden/tool_signature"
39+
echo " ci/licenses_golden/tool_signature"
4040
echo "For more information, see the script in:"
4141
echo " https://github.com/flutter/engine/tree/master/tools/licenses"
4242
echo ""

ci/licenses_golden/tool_signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Signature: ab4f82ed4f38f0d3821073855c220992
1+
Signature: ad6590b867473860a1e6b08bf9e98667
22

fml/platform/linux/timerfd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bool TimerRearm(int fd, fml::TimePoint time_point) {
4646
}
4747

4848
bool TimerDrain(int fd) {
49-
// 8 bytes must be read from a signalled timer file descriptor when signalled.
49+
// 8 bytes must be read from a signaled timer file descriptor when signaled.
5050
uint64_t fire_count = 0;
5151
ssize_t size = FML_HANDLE_EINTR(::read(fd, &fire_count, sizeof(uint64_t)));
5252
if (size != sizeof(uint64_t)) {

fml/platform/linux/timerfd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace fml {
4646
/// Rearms the timer to expire at the given time point.
4747
bool TimerRearm(int fd, fml::TimePoint time_point);
4848

49-
/// Drains the timer FD and retuns true if it has expired. This may be false in
49+
/// Drains the timer FD and returns true if it has expired. This may be false in
5050
/// case the timer read is non-blocking and this routine was called before the
5151
/// timer expiry.
5252
bool TimerDrain(int fd);

lib/stub_ui/lib/src/engine/dom_renderer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class DomRenderer {
5151
html.Element get sceneElement => _sceneElement;
5252
html.Element _sceneElement;
5353

54-
/// This is state persistant across hot restarts that indicates what
54+
/// This is state persistent across hot restarts that indicates what
5555
/// to clear. We delay removal of old visible state to make the
5656
/// transition appear smooth.
5757
static const String _staleHotRestartStore = '__flutter_state';

lib/stub_ui/lib/src/engine/semantics/semantics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ class EngineSemanticsOwner {
10671067

10681068
/// Declares that the [child] must be attached to the [parent].
10691069
///
1070-
/// Attachments take precendence over detachments (see [_detachObject]). This
1070+
/// Attachments take precedence over detachments (see [_detachObject]). This
10711071
/// allows the same node to be detached from one parent in the tree and
10721072
/// reattached to another parent.
10731073
void _attachObject({SemanticsObject parent, SemanticsObject child}) {

lib/stub_ui/lib/src/ui/painting.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ enum FilterQuality {
16001600

16011601
/// Fastest possible filtering, albeit also the lowest quality.
16021602
///
1603-
/// Typically this implies nearest-neighbour filtering.
1603+
/// Typically this implies nearest-neighbor filtering.
16041604
none,
16051605

16061606
/// Better quality than [none], faster than [medium].
@@ -1804,7 +1804,7 @@ Future<void> _decodeImageFromListAsync(
18041804
/// [pixels] is the pixel data in the encoding described by [format].
18051805
///
18061806
/// [rowBytes] is the number of bytes consumed by each row of pixels in the
1807-
/// data buffer. If unspecified, it defaults to [width] multipled by the
1807+
/// data buffer. If unspecified, it defaults to [width] multiplied by the
18081808
/// number of bytes per pixel in the provided [format].
18091809
void decodeImageFromPixels(Uint8List pixels, int width, int height,
18101810
PixelFormat format, ImageDecoderCallback callback,
@@ -1883,7 +1883,7 @@ class Shadow {
18831883
///
18841884
/// This class does not provide a way to disable shadows to avoid inconsistencies
18851885
/// in shadow blur rendering, primarily as a method of reducing test flakiness.
1886-
/// [toPaint] should be overriden in subclasses to provide this functionality.
1886+
/// [toPaint] should be overridden in subclasses to provide this functionality.
18871887
Paint toPaint() {
18881888
return Paint()
18891889
..color = color

lib/stub_ui/lib/src/ui/semantics.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class SemanticsAction {
175175
/// A [Snackbar], for example, may have a dismiss action to indicate to the
176176
/// user that it can be removed after it is no longer relevant. On Android,
177177
/// (with TalkBack) special hint text is spoken when focusing the node and
178-
/// a custom action is availible in the local context menu. On iOS,
178+
/// a custom action is available in the local context menu. On iOS,
179179
/// (with VoiceOver) users can perform a standard gesture to dismiss it.
180180
static const SemanticsAction dismiss =
181181
const SemanticsAction._(_kDismissIndex);
@@ -431,7 +431,7 @@ class SemanticsFlag {
431431
/// that the node's semantic label can be used to announce an edge triggered
432432
/// semantics update.
433433
///
434-
/// Semantic nodes annotated with this flag will still recieve a11y focus.
434+
/// Semantic nodes annotated with this flag will still receive a11y focus.
435435
///
436436
/// Updating this label within the same active route subtree will not cause
437437
/// additional announcements.

lib/stub_ui/lib/src/ui/text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class TextStyle {
423423
/// * `fontWeight`: The typeface thickness to use when painting the text (e.g., bold).
424424
/// * `fontStyle`: The typeface variant to use when drawing the letters (e.g., italics).
425425
/// * `fontFamily`: The name of the font to use when painting the text (e.g., Roboto). If a `fontFamilyFallback` is
426-
/// provided and `fontFamily` is not, then the first font family in `fontFamilyFallback` will take the postion of
426+
/// provided and `fontFamily` is not, then the first font family in `fontFamilyFallback` will take the position of
427427
/// the preferred font family. When a higher priority font cannot be found or does not contain a glyph, a lower
428428
/// priority font will be used.
429429
/// * `fontFamilyFallback`: An ordered list of the names of the fonts to fallback on when a glyph cannot

lib/stub_ui/lib/src/ui/window.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ class Window {
944944

945945
/// Change the retained semantics data about this window.
946946
///
947-
/// If [semanticsEnabled] is true, the user has requested that this funciton
947+
/// If [semanticsEnabled] is true, the user has requested that this function
948948
/// be called whenever the semantic content of this window changes.
949949
///
950950
/// In either case, this function disposes the given update, which means the

0 commit comments

Comments
 (0)