Skip to content

Commit 0c2f7bc

Browse files
authored
Remove errant double spaces (#110758)
1 parent 1658cb5 commit 0c2f7bc

File tree

93 files changed

+155
-154
lines changed

Some content is hidden

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

93 files changed

+155
-154
lines changed

dev/benchmarks/complex_layout/test/measure_scroll_smoothness.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Future<void> main() async {
181181

182182
/// Calculates the smoothness measure from `scrollOffset` and `delays` list.
183183
///
184-
/// Smoothness (`abs_jerk`) is measured by the absolute value of the discrete
184+
/// Smoothness (`abs_jerk`) is measured by the absolute value of the discrete
185185
/// 2nd derivative of the scroll offset.
186186
///
187187
/// It was experimented that jerk (3rd derivative of the position) is a good

dev/benchmarks/microbenchmarks/lib/foundation/platform_asset_bundle.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main() async {
2424
watch.reset();
2525
watch.start();
2626
for (int i = 0; i < _kBatchSize; i += 1) {
27-
// Note: We don't load images like this. PlatformAssetBundle is used for
27+
// Note: We don't load images like this. PlatformAssetBundle is used for
2828
// other assets (like Rive animations). We are using an image because it's
2929
// conveniently sized and available for the test.
3030
tally += (await bundle.load('packages/flutter_gallery_assets/places/india_pondicherry_salt_farm.png')).lengthInBytes;

dev/benchmarks/platform_channels_benchmarks/lib/main.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'dart:math' as math;
88
import 'package:flutter/foundation.dart' show kDebugMode;
99
import 'package:flutter/material.dart';
1010
import 'package:flutter/services.dart';
11-
1211
import 'package:microbenchmarks/common.dart';
1312

1413
List<Object?> _makeTestBuffer(int size) {
@@ -195,7 +194,7 @@ Future<void> _runTests() async {
195194
);
196195

197196
/// WARNING: Don't change the following line of code, it will invalidate
198-
/// `Large` tests. Instead make a different test. The size of largeBuffer
197+
/// `Large` tests. Instead make a different test. The size of largeBuffer
199198
/// serialized is 14214 bytes.
200199
final List<Object?> largeBuffer = _makeTestBuffer(1000);
201200
final ByteData largeBufferBytes =

dev/bots/analyze_snippet_code.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ class _SnippetChecker {
443443

444444
/// The directory for the dart:ui code to be analyzed with the flutter code.
445445
///
446-
/// If this is null, then no dart:ui code is included in the analysis. It
446+
/// If this is null, then no dart:ui code is included in the analysis. It
447447
/// defaults to the location inside of the flutter bin/cache directory that
448448
/// contains the dart:ui code supplied by the engine.
449449
final Directory? _dartUiLocation;

dev/bots/prepare_package.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ typedef HttpReader = Future<Uint8List> Function(Uri url, {Map<String, String> he
185185

186186
/// Creates a pre-populated Flutter archive from a git repo.
187187
class ArchiveCreator {
188-
/// [tempDir] is the directory to use for creating the archive. The script
188+
/// [tempDir] is the directory to use for creating the archive. The script
189189
/// will place several GiB of data there, so it should have available space.
190190
///
191191
/// The processManager argument is used to inject a mock of [ProcessManager] for
@@ -263,7 +263,7 @@ class ArchiveCreator {
263263
/// platform we're running on.
264264
final Platform platform;
265265

266-
/// The branch to build the archive for. The branch must contain [revision].
266+
/// The branch to build the archive for. The branch must contain [revision].
267267
final Branch branch;
268268

269269
/// The git revision hash to build the archive for. This revision has
@@ -385,7 +385,7 @@ class ArchiveCreator {
385385
/// git will give an error.
386386
///
387387
/// If [strict] is true, the exact [revision] must be tagged to return the
388-
/// version. If [strict] is not true, will look backwards in time starting at
388+
/// version. If [strict] is not true, will look backwards in time starting at
389389
/// [revision] to find the most recent version tag.
390390
///
391391
/// The version found as a git tag is added to the information given by

dev/bots/test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const Map<String, List<String>> kWebTestFileKnownFailures = <String, List<String
186186
const String kTestHarnessShardName = 'test_harness_tests';
187187
const List<String> _kAllBuildModes = <String>['debug', 'profile', 'release'];
188188

189-
// The seed used to shuffle tests. If not passed with
189+
// The seed used to shuffle tests. If not passed with
190190
// --test-randomize-ordering-seed=<seed> on the command line, it will be set the
191191
// first time it is accessed. Pass zero to turn off shuffling.
192192
String? _shuffleSeed;

dev/bots/unpublish_package.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ Future<void> main(List<String> rawArguments) async {
429429
'confirm',
430430
help: 'If set, will actually remove the archive from Google Cloud Storage '
431431
'upon successful execution of this script. Published archives will be '
432-
'removed from this directory: $baseUrl$releaseFolder. This option '
432+
'removed from this directory: $baseUrl$releaseFolder. This option '
433433
'must be set to perform any action on the server, otherwise only a dry '
434434
'run is performed.',
435435
);
@@ -479,7 +479,7 @@ Future<void> main(List<String> rawArguments) async {
479479
}
480480

481481
if (!(parsedArguments['confirm'] as bool)) {
482-
_printBanner('This will be just a dry run. To actually perform the changes below, re-run with --confirm argument.');
482+
_printBanner('This will be just a dry run. To actually perform the changes below, re-run with --confirm argument.');
483483
}
484484

485485
final List<String> channelArg = parsedArguments['channel'] as List<String>;
@@ -518,7 +518,7 @@ Future<void> main(List<String> rawArguments) async {
518518
errorExit('$message\n$stack', exitCode: exitCode);
519519
}
520520
if (!(parsedArguments['confirm'] as bool)) {
521-
_printBanner('This was just a dry run. To actually perform the above changes, re-run with --confirm argument.');
521+
_printBanner('This was just a dry run. To actually perform the above changes, re-run with --confirm argument.');
522522
}
523523
exit(0);
524524
}

dev/integration_tests/flutter_gallery/lib/demo/material/chip_demo.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ class _ChipDemoState extends State<ChipDemo> {
194194
}
195195

196196
// This converts a String to a unique color, based on the hash value of the
197-
// String object. It takes the bottom 16 bits of the hash, and uses that to
197+
// String object. It takes the bottom 16 bits of the hash, and uses that to
198198
// pick a hue for an HSV color, and then creates the color (with a preset
199-
// saturation and value). This means that any unique strings will also have
199+
// saturation and value). This means that any unique strings will also have
200200
// unique colors, but they'll all be readable, since they have the same
201201
// saturation and value.
202202
Color _nameToColor(String name, ThemeData theme) {

dev/tools/dartdoc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ ArgParser _createArgsParser() {
255255
help: 'Show command help.');
256256
parser.addFlag('verbose', defaultsTo: true,
257257
help: 'Whether to report all error messages (on) or attempt to '
258-
'filter out some known false positives (off). Shut this off '
258+
'filter out some known false positives (off). Shut this off '
259259
'locally if you want to address Flutter-specific issues.');
260260
parser.addFlag('checked', abbr: 'c',
261261
help: 'Run dartdoc in checked mode.');

dev/tools/localization/bin/gen_subtag_registry.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import 'dart:io';
77

88
const String registry = 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry';
99

10-
/// A script to generate a Dart cache of https://www.iana.org. This should be
11-
/// run occasionally. It was created since iana.org was found to be flakey.
10+
/// A script to generate a Dart cache of https://www.iana.org. This should be
11+
/// run occasionally. It was created since iana.org was found to be flakey.
1212
///
1313
/// To execute: dart gen_subtag_registry.dart > language_subtag_registry.dart
1414
Future<void> main() async {

0 commit comments

Comments
 (0)