Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Fixes dart-lang#47505

Change-Id: Ic2e25800263e96b2b4282f89ec0be017c86d4adb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217361
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
  • Loading branch information
asashour authored and commit-bot@chromium.org committed Oct 20, 2021
1 parent d041cf0 commit c47cf76
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions pkg/analysis_server/lib/src/plugin/result_merger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ class ResultMerger {
}
var elementMap = <Element, Set<int>>{};
for (var partialResults in partialResultList) {
for (var occurances in partialResults) {
var element = occurances.element;
for (var occurrences in partialResults) {
var element = occurrences.element;
var offsets = elementMap.putIfAbsent(element, () => HashSet<int>());
offsets.addAll(occurances.offsets);
offsets.addAll(occurrences.offsets);
}
}
var mergedOccurrences = <Occurrences>[];
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/_http/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ abstract class HttpClientRequest implements IOSink {
/// the request has been aborted
///
/// ```dart import:async
/// HttpClientRequst request = ...
/// HttpClientRequest request = ...
/// request.write();
/// Timer(Duration(seconds: 1), () {
/// request.abort();
Expand Down
6 changes: 3 additions & 3 deletions sdk/lib/_http/http_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class _MessageType {
*
* It does so by overriding pause/resume, so that once the
* _HttpDetachedStreamSubscription is resumed, it'll deliver the data before
* resuming the underlaying subscription.
* resuming the underlying subscription.
*/
class _HttpDetachedStreamSubscription implements StreamSubscription<Uint8List> {
StreamSubscription<Uint8List> _subscription;
Expand Down Expand Up @@ -692,7 +692,7 @@ class _HttpParser extends Stream<_HttpIncoming> {
const errorIfBothText = "Both Content-Length and Transfer-Encoding "
"are specified, at most one is allowed";
if (headerField == HttpHeaders.contentLengthHeader) {
// Content Length header should not have more than one occurance
// Content Length header should not have more than one occurrence
// or coexist with Transfer Encoding header.
if (_contentLength) {
throw HttpException("The Content-Length header occurred "
Expand Down Expand Up @@ -777,7 +777,7 @@ class _HttpParser extends Stream<_HttpIncoming> {
_state = _State.CHUNK_SIZE_EXTENSION;
} else {
int value = _expectHexDigit(byte);
// Checks whether (_remaingingContent * 16 + value) overflows.
// Checks whether (_remainingContent * 16 + value) overflows.
if (_remainingContent > _chunkSizeLimit >> 4) {
throw HttpException('Chunk size overflows the integer');
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/async/future.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ abstract class FutureOr<T> {
/// To perform an asynchronous computation, you use an `async` function
/// which always produces a future.
/// Inside such an asynchronous function, you can use the `await` operation
/// to delay execution until another asyncronous computation has a result.
/// to delay execution until another asynchronous computation has a result.
/// While execution of the awaiting function is delayed,
/// the program is not blocked, and can continue doing other things.
///
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/async/future_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class _Future<T> implements Future<T> {

/// The future has been completed with an error result.
///
/// [_resultOrListeners] contains an [AsyncEror]
/// [_resultOrListeners] contains an [AsyncError]
/// holding the error and stack trace.
static const int _stateError = 16;

Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/core/date_time.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class DateTime implements Comparable<DateTime> {
/// them as overflows into the next larger component.
/// For example, "2020-01-42" will be parsed as 2020-02-11, because
/// the last valid date in that month is 2020-01-31, so 42 days is
/// interprted as 31 days of that month plus 11 days into the next month.
/// interpreted as 31 days of that month plus 11 days into the next month.
///
/// To detect and reject invalid component values, use
/// [DateFormat.parseStrict](https://pub.dev/documentation/intl/latest/intl/DateFormat/parseStrict.html)
Expand Down
8 changes: 4 additions & 4 deletions sdk/lib/core/num.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ abstract class num implements Comparable<num> {
/// a finite double or an infinite double ([double.infinity]
/// or [double.negativeInfinity]).
///
/// All numbers satisfy exacly one of [isInfinite], [isFinite]
/// All numbers satisfy exactly one of [isInfinite], [isFinite]
/// and `isNaN`.
bool get isNaN;

Expand All @@ -237,7 +237,7 @@ abstract class num implements Comparable<num> {
///
/// Only satisfied by [double.infinity] and [double.negativeInfinity].
///
/// All numbers satisfy exacly one of `isInfinite`, [isFinite]
/// All numbers satisfy exactly one of `isInfinite`, [isFinite]
/// and [isNaN].
bool get isInfinite;

Expand All @@ -246,7 +246,7 @@ abstract class num implements Comparable<num> {
/// The only non-finite numbers are NaN values, positive infinity, and
/// negative infinity. All integers are finite.
///
/// All numbers satisfy exacly one of [isInfinite], `isFinite`
/// All numbers satisfy exactly one of [isInfinite], `isFinite`
/// and [isNaN].
bool get isFinite;

Expand Down Expand Up @@ -304,7 +304,7 @@ abstract class num implements Comparable<num> {

/// The least integer no smaller than `this`.
///
/// Rounds fractional values towards positive infinitiy.
/// Rounds fractional values towards positive infinity.
///
/// The number must be finite (see [isFinite]).
///
Expand Down
6 changes: 3 additions & 3 deletions sdk/lib/core/object.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Object {
/// Some classes have a default textual representation,
/// often paired with a static `parse` function (like [int.parse]).
/// These classes will provide the textual representation as
/// their string represetion.
/// their string representation.
///
/// Other classes have no meaningful textual representation
/// that a program will care about.
Expand Down Expand Up @@ -501,7 +501,7 @@ class Object {
/// again with objects that have the same hash codes in the same order
/// during an execution of a single program.
///
/// The hash value generated by this function is *not* guranteed to be stable
/// The hash value generated by this function is *not* guaranteed to be stable
/// over different runs of the same program,
/// or between code run in different isolates of the same program.
/// The exact algorithm used may differ between different platforms,
Expand Down Expand Up @@ -540,7 +540,7 @@ class Object {
/// during an execution of a single program,
/// even if the objects are not necessarily in the same order,
///
/// The hash value generated by this function is *not* guranteed to be stable
/// The hash value generated by this function is *not* guaranteed to be stable
/// over different runs of the same program.
/// The exact algorithm used may differ between different platforms,
/// or between different versions of the platform libraries,
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/core/uri.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3134,7 +3134,7 @@ class UriData {
/// That is always either -1 or 4, depending on whether `_text` includes the
/// `data:` scheme or not.
///
/// The first speparator ends the mime type. We don't bother with finding
/// The first separator ends the mime type. We don't bother with finding
/// the '/' inside the mime type.
///
/// Each two separators after that marks a parameter key and value.
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/html/dart2js/html_dart2js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18328,7 +18328,7 @@ class HttpRequest extends HttpRequestEventTarget {
/**
* Specify the desired `url`, and `method` to use in making the request.
*
* By default the request is done asyncronously, with no user or password
* By default the request is done asynchronously, with no user or password
* authentication information. If `async` is false, the request will be sent
* synchronously.
*
Expand Down
2 changes: 1 addition & 1 deletion tools/dom/docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4207,7 +4207,7 @@
"/**",
" * Specify the desired `url`, and `method` to use in making the request.",
" *",
" * By default the request is done asyncronously, with no user or password",
" * By default the request is done asynchronously, with no user or password",
" * authentication information. If `async` is false, the request will be send",
" * synchronously.",
" *",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
/**
* Specify the desired `url`, and `method` to use in making the request.
*
* By default the request is done asyncronously, with no user or password
* By default the request is done asynchronously, with no user or password
* authentication information. If `async` is false, the request will be sent
* synchronously.
*
Expand Down

0 comments on commit c47cf76

Please sign in to comment.