Skip to content

Commit 7b3b600

Browse files
authored
Fix typo (#1108)
* Fix typo * Typos
1 parent 04ec4e5 commit 7b3b600

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

benchmark/after.dart.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ class BacktrackingSolver {
133133
/// packages.
134134
final _forceLatest = new Set<String>();
135135

136-
/// The set of packages whose dependecy is being overridden by the root
136+
/// The set of packages whose dependency is being overridden by the root
137137
/// package, keyed by the name of the package.
138138
///
139-
/// Any dependency on a package that appears in this map will be overriden
139+
/// Any dependency on a package that appears in this map will be overridden
140140
/// to use the one here.
141141
final _overrides = new Map<String, PackageDep>();
142142

@@ -259,8 +259,8 @@ class BacktrackingSolver {
259259
/// Generates a map containing all of the known available versions for each
260260
/// package in [packages].
261261
///
262-
/// The version list may not always be complete. The the package is the root
263-
/// root package, or its a package that we didn't unlock while solving
262+
/// The version list may not always be complete. The package is the root
263+
/// root package, or it's a package that we didn't unlock while solving
264264
/// because we weren't trying to upgrade it, we will just know the current
265265
/// version.
266266
Map<String, List<Version>> _getAvailableVersions(List<PackageId> packages) {
@@ -286,15 +286,15 @@ class BacktrackingSolver {
286286
/// package, to the set of versions to consider for solutions.
287287
///
288288
/// The first item in the list will be the currently selected version of that
289-
/// package. Subsequent items will be tried if it the current selection fails.
289+
/// package. Subsequent items will be tried if the current selection fails.
290290
/// Returns the first selected version.
291291
PackageId select(VersionQueue versions) {
292292
_selected.add(versions);
293293
logSolve();
294294
return versions.current;
295295
}
296296

297-
/// Returns the the currently selected id for the package [name] or `null` if
297+
/// Returns the currently selected id for the package [name] or `null` if
298298
/// no concrete version has been selected for that package yet.
299299
PackageId getSelected(String name) {
300300
// Always prefer the root package.
@@ -629,7 +629,7 @@ class Traverser {
629629

630630
/// Traverses the references that [depender] depends on, stored in [deps].
631631
///
632-
/// Desctructively modifies [deps]. Completes to a list of packages if the
632+
/// Destructively modifies [deps]. Completes to a list of packages if the
633633
/// traversal is complete. Completes it to an error if a failure occurred.
634634
/// Otherwise, recurses.
635635
Future<List<PackageId>> _traverseDeps(

benchmark/before.dart.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ class BacktrackingSolver {
133133
/// packages.
134134
final _forceLatest = new Set<String>();
135135

136-
/// The set of packages whose dependecy is being overridden by the root
136+
/// The set of packages whose dependency is being overridden by the root
137137
/// package, keyed by the name of the package.
138138
///
139-
/// Any dependency on a package that appears in this map will be overriden
139+
/// Any dependency on a package that appears in this map will be overridden
140140
/// to use the one here.
141141
final _overrides = new Map<String, PackageDep>();
142142

@@ -274,8 +274,8 @@ class BacktrackingSolver {
274274
/// Generates a map containing all of the known available versions for each
275275
/// package in [packages].
276276
///
277-
/// The version list may not always be complete. The the package is the root
278-
/// root package, or its a package that we didn't unlock while solving
277+
/// The version list may not always be complete. The package is the root
278+
/// root package, or it's a package that we didn't unlock while solving
279279
/// because we weren't trying to upgrade it, we will just know the current
280280
/// version.
281281
Map<String, List<Version>> _getAvailableVersions(List<PackageId> packages) {
@@ -301,15 +301,15 @@ class BacktrackingSolver {
301301
/// package, to the set of versions to consider for solutions.
302302
///
303303
/// The first item in the list will be the currently selected version of that
304-
/// package. Subsequent items will be tried if it the current selection fails.
304+
/// package. Subsequent items will be tried if the current selection fails.
305305
/// Returns the first selected version.
306306
PackageId select(VersionQueue versions) {
307307
_selected.add(versions);
308308
logSolve();
309309
return versions.current;
310310
}
311311

312-
/// Returns the the currently selected id for the package [name] or `null` if
312+
/// Returns the currently selected id for the package [name] or `null` if
313313
/// no concrete version has been selected for that package yet.
314314
PackageId getSelected(String name) {
315315
// Always prefer the root package.
@@ -645,7 +645,7 @@ class Traverser {
645645

646646
/// Traverses the references that [depender] depends on, stored in [deps].
647647
///
648-
/// Desctructively modifies [deps]. Completes to a list of packages if the
648+
/// Destructively modifies [deps]. Completes to a list of packages if the
649649
/// traversal is complete. Completes it to an error if a failure occurred.
650650
/// Otherwise, recurses.
651651
Future<List<PackageId>> _traverseDeps(PackageId depender,

test/regression/other/enhanced_enum.unit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ enum EnumAll<S extends num, T extends num>
5353
// constructors and the implicit element creation expressions.)
5454
// Cannot have const factory constructor, because they *must* redirect to
5555
// generative constructors.
56-
// Cannot have `super`-constuctor invocations in initializer lists.
56+
// Cannot have `super`-constructor invocations in initializer lists.
5757

5858
// Instance members.
5959

@@ -145,7 +145,7 @@ enum EnumAll<S extends num, T extends num>
145145
// constructors and the implicit element creation expressions.)
146146
// Cannot have const factory constructor, because they *must* redirect to
147147
// generative constructors.
148-
// Cannot have `super`-constuctor invocations in initializer lists.
148+
// Cannot have `super`-constructor invocations in initializer lists.
149149

150150
// Instance members.
151151

0 commit comments

Comments
 (0)