Skip to content

Commit

Permalink
Fix mistakes in dartdoc (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Aug 16, 2024
1 parent 4a739d1 commit aaadd3f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/src/async_import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class AsyncImportCache {
<(AsyncImporter, Uri, {bool forImport}), AsyncCanonicalizeResult?>{};

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

// Each indivudal call to a `canonicalize()` override may not be cacheable
// Each individual call to a `canonicalize()` override may not be cacheable
// (specifically, if it has access to `containingUrl` it's too
// context-sensitive to usefully cache). We want to cache a given URL across
// the _entire_ importer chain, so we use [cacheable] to track whether _all_
// `canonicalize()` calls we've attempted are cacheable. Only if they are do
// `canonicalize()` calls we've attempted are cacheable. Only if they are, do
// we store the result in the cache.
var cacheable = true;
for (var i = 0; i < _importers.length; i++) {
Expand Down
8 changes: 4 additions & 4 deletions lib/src/import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_import_cache.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: f70eea612e1613ef93bad353803ad9479cda04aa
// Checksum: 513b90d18d73e22feb5e743d67144c519d8e9bc4
//
// ignore_for_file: unused_import

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

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

// Each indivudal call to a `canonicalize()` override may not be cacheable
// Each individual call to a `canonicalize()` override may not be cacheable
// (specifically, if it has access to `containingUrl` it's too
// context-sensitive to usefully cache). We want to cache a given URL across
// the _entire_ importer chain, so we use [cacheable] to track whether _all_
// `canonicalize()` calls we've attempted are cacheable. Only if they are do
// `canonicalize()` calls we've attempted are cacheable. Only if they are, do
// we store the result in the cache.
var cacheable = true;
for (var i = 0; i < _importers.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/importer/filesystem.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FilesystemImporter extends Importer {
"Use FilesystemImporter.noLoadPath or FilesystemImporter('.') instead.")
static final cwd = FilesystemImporter._deprecated('.');

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

Expand Down
2 changes: 1 addition & 1 deletion lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ abstract class StylesheetParser extends Parser {
///
/// If [allowColon] is `false`, this stops at top-level colons.
///
/// If [allowOpenBrace] is `false`, this stops at top-level colons.
/// If [allowOpenBrace] is `false`, this stops at opening curly braces.
///
/// If [silentComments] is `true`, this will parse silent comments as
/// comments. Otherwise, it will preserve two adjacent slashes and emit them
Expand Down
2 changes: 1 addition & 1 deletion lib/src/visitor/serialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ final class _SerializeVisitor
if (negative) textIndex++;
while (true) {
if (textIndex == text.length) {
// If we get here, [text] has no decmial point. It definitely doesn't
// If we get here, [text] has no decimal point. It definitely doesn't
// need to be rounded; we can write it as-is.
_buffer.write(text);
return;
Expand Down

0 comments on commit aaadd3f

Please sign in to comment.