From 5eb66fc2198d1c6c4551111b37be6dafa8d36ca8 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Fri, 3 Feb 2023 23:47:13 +0100 Subject: [PATCH] Fixes typos (#1879) --- CONTRIBUTING.md | 2 +- bin/sass.dart | 2 +- lib/src/parse/parser.dart | 2 +- lib/src/parse/stylesheet.dart | 2 +- lib/src/value/color.dart | 2 +- lib/src/value/number.dart | 2 +- lib/src/visitor/async_evaluate.dart | 2 +- lib/src/visitor/evaluate.dart | 4 ++-- lib/src/visitor/find_dependencies.dart | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 24e71bc86..de99ee93c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,7 +86,7 @@ repository contains language tests that are shared among the main Sass implementations. Any new feature should be thoroughly tested there, and any bug should have a regression test added. -[sass-spec]: http://github.com/sass/sass-spec +[sass-spec]: https://github.com/sass/sass-spec To create a new spec: diff --git a/bin/sass.dart b/bin/sass.dart index a95ad65ba..9114fcf5c 100644 --- a/bin/sass.dart +++ b/bin/sass.dart @@ -83,7 +83,7 @@ Future main(List args) async { options.trace ? getTrace(error) ?? stackTrace : null); // Exit code 65 indicates invalid data per - // http://www.freebsd.org/cgi/man.cgi?query=sysexits. + // https://www.freebsd.org/cgi/man.cgi?query=sysexits. // // We let exitCode 66 take precedence for deterministic behavior. if (exitCode != 66) exitCode = 65; diff --git a/lib/src/parse/parser.dart b/lib/src/parse/parser.dart index 58c1e73e1..dd8f27439 100644 --- a/lib/src/parse/parser.dart +++ b/lib/src/parse/parser.dart @@ -626,7 +626,7 @@ class Parser { return result; } - /// Consumes [text] as an identifer, but doesn't verify whether there's + /// Consumes [text] as an identifier, but doesn't verify whether there's /// additional identifier text afterwards. /// /// Returns `true` if the full [text] is consumed and `false` otherwise, but diff --git a/lib/src/parse/stylesheet.dart b/lib/src/parse/stylesheet.dart index d0bc43dbc..d15801f28 100644 --- a/lib/src/parse/stylesheet.dart +++ b/lib/src/parse/stylesheet.dart @@ -1715,7 +1715,7 @@ abstract class StylesheetParser extends Parser { var wasInParentheses = _inParentheses; // We use the convention below of referring to nullable variables that are - // shared across anonymous functions in this method with a trailling + // shared across anonymous functions in this method with a trailing // underscore. This allows us to copy them to non-underscored local // variables to make it easier for Dart's type system to reason about their // local nullability. diff --git a/lib/src/value/color.dart b/lib/src/value/color.dart index 3d3db20f2..d3845559e 100644 --- a/lib/src/value/color.dart +++ b/lib/src/value/color.dart @@ -293,7 +293,7 @@ class SassColor extends Value { } /// An algorithm from the CSS3 spec: - /// http://www.w3.org/TR/css3-color/#hsl-color. + /// https://www.w3.org/TR/css3-color/#hsl-color. static double _hueToRgb(double m1, double m2, double hue) { if (hue < 0) hue += 1; if (hue > 1) hue -= 1; diff --git a/lib/src/value/number.dart b/lib/src/value/number.dart index 87c159b96..9a5821bfd 100644 --- a/lib/src/value/number.dart +++ b/lib/src/value/number.dart @@ -143,7 +143,7 @@ const _conversions = { }, }; -/// A map from human-readable names of unit types to the convertable units that +/// A map from human-readable names of unit types to the convertible units that /// fall into those types. const _unitsByType = { "length": ["in", "cm", "pc", "mm", "q", "pt", "px"], diff --git a/lib/src/visitor/async_evaluate.dart b/lib/src/visitor/async_evaluate.dart index fa531c557..2e4377a75 100644 --- a/lib/src/visitor/async_evaluate.dart +++ b/lib/src/visitor/async_evaluate.dart @@ -3611,7 +3611,7 @@ class _EvaluationContext implements EvaluationContext { final _EvaluateVisitor _visitor; /// The AST node whose span should be used for [warn] if no other span is - /// avaiable. + /// available. final AstNode _defaultWarnNodeWithSpan; _EvaluationContext(this._visitor, this._defaultWarnNodeWithSpan); diff --git a/lib/src/visitor/evaluate.dart b/lib/src/visitor/evaluate.dart index 90246c89e..acae74825 100644 --- a/lib/src/visitor/evaluate.dart +++ b/lib/src/visitor/evaluate.dart @@ -5,7 +5,7 @@ // DO NOT EDIT. This file was generated from async_evaluate.dart. // See tool/grind/synchronize.dart for details. // -// Checksum: a8472983eeb4c8348befed4953326f285b68c4a8 +// Checksum: d5cb0fe933051782cbfb79ee3d65bc4353471f11 // // ignore_for_file: unused_import @@ -3548,7 +3548,7 @@ class _EvaluationContext implements EvaluationContext { final _EvaluateVisitor _visitor; /// The AST node whose span should be used for [warn] if no other span is - /// avaiable. + /// available. final AstNode _defaultWarnNodeWithSpan; _EvaluationContext(this._visitor, this._defaultWarnNodeWithSpan); diff --git a/lib/src/visitor/find_dependencies.dart b/lib/src/visitor/find_dependencies.dart index 1e60abd87..ca4dfb934 100644 --- a/lib/src/visitor/find_dependencies.dart +++ b/lib/src/visitor/find_dependencies.dart @@ -80,7 +80,7 @@ class _FindDependenciesVisitor with RecursiveStatementVisitor { /// A struct of different types of dependencies a Sass stylesheet can contain. class DependencyReport { - /// An unmodifiable set of all `@use`d URLs in the stylesheet (exluding + /// An unmodifiable set of all `@use`d URLs in the stylesheet (excluding /// built-in modules). final Set uses;