Fixed a lot of typos (#141431)
Fair amount of typos spotted and fixed. Some of them are in comments, some of them are in code and some of them are in nondart files. There is no need for issues since it's a typo fix. I have doubts about [packages/flutter_tools/lib/src/ios/core_devices.dart](https://github.com/flutter/flutter/compare/master...anisalibegic:flutter:master#diff-fdbc1496b4bbe7e2b445a567fd385677af861c0093774e3d8cc460fdd5b794fa), I have a feeling it might broke some things on the other end, even though it's a typo.
This commit is contained in:
@@ -234,7 +234,7 @@ class SampleChecker {
|
||||
final RegExp validExampleRe = RegExp(r'\*\* See code in (?<path>.+) \*\*');
|
||||
// Looks for some common broken versions of example links. This looks for
|
||||
// something that is at minimum "///*seecode<something>*" to indicate that it
|
||||
// looks like an example link. It should be narrowed if we start gettting false
|
||||
// looks like an example link. It should be narrowed if we start getting false
|
||||
// positives.
|
||||
final RegExp malformedLinkRe = RegExp(r'^(?<malformed>\s*///\s*\*\*?\s*[sS][eE][eE]\s*[Cc][Oo][Dd][Ee].+\*\*?)');
|
||||
for (final File file in files) {
|
||||
|
||||
@@ -23,15 +23,15 @@ void testNoStopwatches(Stopwatch stopwatch) {
|
||||
|
||||
StopwatchAtHome().runtimeType; // Bad: introducing a Stopwatch subclass.
|
||||
|
||||
Stopwatch anothorStopwatch = stopwatch; // OK: not directly introducing Stopwatch.
|
||||
Stopwatch anotherStopwatch = stopwatch; // OK: not directly introducing Stopwatch.
|
||||
StopwatchAtHome Function() constructor = StopwatchAtHome.new; // Bad: introducing a Stopwatch constructor.
|
||||
assert(() {
|
||||
anothorStopwatch = constructor()..runtimeType;
|
||||
anotherStopwatch = constructor()..runtimeType;
|
||||
constructor = StopwatchAtHome.create; // Bad: introducing a Stopwatch constructor.
|
||||
anothorStopwatch = constructor()..runtimeType;
|
||||
anotherStopwatch = constructor()..runtimeType;
|
||||
return true;
|
||||
}());
|
||||
anothorStopwatch.runtimeType;
|
||||
anotherStopwatch.runtimeType;
|
||||
|
||||
externallib.MyStopwatch.create(); // Bad: introducing an external Stopwatch constructor.
|
||||
ExternalStopwatchConstructor? externalConstructor;
|
||||
|
||||
@@ -82,7 +82,7 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('flutter/pacakges version', () {
|
||||
group('flutter/packages version', () {
|
||||
final MemoryFileSystem memoryFileSystem = MemoryFileSystem();
|
||||
final fs.File packagesVersionFile = memoryFileSystem.file(path.join('bin','internal','flutter_packages.version'));
|
||||
const String kSampleHash = '592b5b27431689336fa4c721a099eedf787aeb56';
|
||||
|
||||
Reference in New Issue
Block a user