Skip to content

Commit aaadd3f

Browse files
authored
Fix mistakes in dartdoc (#2309)
1 parent 4a739d1 commit aaadd3f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

lib/src/async_import_cache.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class AsyncImportCache {
6161
<(AsyncImporter, Uri, {bool forImport}), AsyncCanonicalizeResult?>{};
6262

6363
/// A map from the keys in [_perImporterCanonicalizeCache] that are generated
64-
/// for relative URL loads agains the base importer to the original relative
64+
/// for relative URL loads against the base importer to the original relative
6565
/// URLs what were loaded.
6666
///
6767
/// This is used to invalidate the cache when files are changed.
@@ -173,11 +173,11 @@ final class AsyncImportCache {
173173
var key = (url, forImport: forImport);
174174
if (_canonicalizeCache.containsKey(key)) return _canonicalizeCache[key];
175175

176-
// Each indivudal call to a `canonicalize()` override may not be cacheable
176+
// Each individual call to a `canonicalize()` override may not be cacheable
177177
// (specifically, if it has access to `containingUrl` it's too
178178
// context-sensitive to usefully cache). We want to cache a given URL across
179179
// the _entire_ importer chain, so we use [cacheable] to track whether _all_
180-
// `canonicalize()` calls we've attempted are cacheable. Only if they are do
180+
// `canonicalize()` calls we've attempted are cacheable. Only if they are, do
181181
// we store the result in the cache.
182182
var cacheable = true;
183183
for (var i = 0; i < _importers.length; i++) {

lib/src/import_cache.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_import_cache.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: f70eea612e1613ef93bad353803ad9479cda04aa
8+
// Checksum: 513b90d18d73e22feb5e743d67144c519d8e9bc4
99
//
1010
// ignore_for_file: unused_import
1111

@@ -63,7 +63,7 @@ final class ImportCache {
6363
<(Importer, Uri, {bool forImport}), CanonicalizeResult?>{};
6464

6565
/// A map from the keys in [_perImporterCanonicalizeCache] that are generated
66-
/// for relative URL loads agains the base importer to the original relative
66+
/// for relative URL loads against the base importer to the original relative
6767
/// URLs what were loaded.
6868
///
6969
/// This is used to invalidate the cache when files are changed.
@@ -171,11 +171,11 @@ final class ImportCache {
171171
var key = (url, forImport: forImport);
172172
if (_canonicalizeCache.containsKey(key)) return _canonicalizeCache[key];
173173

174-
// Each indivudal call to a `canonicalize()` override may not be cacheable
174+
// Each individual call to a `canonicalize()` override may not be cacheable
175175
// (specifically, if it has access to `containingUrl` it's too
176176
// context-sensitive to usefully cache). We want to cache a given URL across
177177
// the _entire_ importer chain, so we use [cacheable] to track whether _all_
178-
// `canonicalize()` calls we've attempted are cacheable. Only if they are do
178+
// `canonicalize()` calls we've attempted are cacheable. Only if they are, do
179179
// we store the result in the cache.
180180
var cacheable = true;
181181
for (var i = 0; i < _importers.length; i++) {

lib/src/importer/filesystem.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class FilesystemImporter extends Importer {
6060
"Use FilesystemImporter.noLoadPath or FilesystemImporter('.') instead.")
6161
static final cwd = FilesystemImporter._deprecated('.');
6262

63-
/// Creates an importer that _only_ loads absolute `file:` URLsand URLs
63+
/// Creates an importer that _only_ loads absolute `file:` URLs and URLs
6464
/// relative to the current file.
6565
static final noLoadPath = FilesystemImporter._noLoadPath();
6666

lib/src/parse/stylesheet.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ abstract class StylesheetParser extends Parser {
28452845
///
28462846
/// If [allowColon] is `false`, this stops at top-level colons.
28472847
///
2848-
/// If [allowOpenBrace] is `false`, this stops at top-level colons.
2848+
/// If [allowOpenBrace] is `false`, this stops at opening curly braces.
28492849
///
28502850
/// If [silentComments] is `true`, this will parse silent comments as
28512851
/// comments. Otherwise, it will preserve two adjacent slashes and emit them

lib/src/visitor/serialize.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ final class _SerializeVisitor
933933
if (negative) textIndex++;
934934
while (true) {
935935
if (textIndex == text.length) {
936-
// If we get here, [text] has no decmial point. It definitely doesn't
936+
// If we get here, [text] has no decimal point. It definitely doesn't
937937
// need to be rounded; we can write it as-is.
938938
_buffer.write(text);
939939
return;

0 commit comments

Comments
 (0)