Skip to content

Commit f0656b4

Browse files
authored
Fix a few minor spelling mistakes (#2209)
1 parent 158223b commit f0656b4

File tree

23 files changed

+53
-53
lines changed

23 files changed

+53
-53
lines changed

.github/workflows/changelog_reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Maybe prevent submission
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout repositiory
17+
- name: Checkout repository
1818
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
1919
- name: Check changed files
2020
run: |

dwds/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ the example app and connect to DWDS.
6767
- If DWDS / Webdev was just released, then you will need to update the version
6868
in the `CHANGELOG`, and the `pubspec.yaml` file as well (eg,
6969
https://github.com/dart-lang/webdev/pull/1462)
70-
- For any directories you’ve touched, `run dart run build_runner` build to check
71-
in the any file that should be built. This will make sure the integration
70+
- For any directories you’ve touched, run `dart run build_runner build` to
71+
check in any file that should be built. This will make sure the integration
7272
tests are run against the built files.
7373

7474
## Release steps
@@ -127,7 +127,7 @@ you need to:
127127
>
128128
> This is so that we don’t need to support older versions of the SDK and test
129129
> against them, therefore every time the Dart SDK is bumped to a new major or
130-
> minor version, DWDS and Webdev’s min Dart SDK constraint needs to to be
130+
> minor version, DWDS and Webdev’s min Dart SDK constraint needs to be
131131
> changed and DWDS and Webdev have to be released. Since DWDS is dependent on
132132
> DDC and the runtime API, if we had a looser min constraint we would need to
133133
> run tests for all earlier stable releases of the SDK that match the
@@ -146,7 +146,7 @@ DWDS in Flutter.
146146

147147
1. Create a branch off the release that needs a hotfix:
148148

149-
a. In the Github UI's
149+
a. In the GitHub UI's
150150
[commit history view](https://github.com/dart-lang/webdev/commits/master),
151151
find the commit that prepared the release of DWDS that you would like to
152152
hotfix.
@@ -177,7 +177,7 @@ DWDS in Flutter.
177177

178178
1. Make the fix:
179179

180-
a. You can now make the change you would like to hotfix. From the Github UI,
180+
a. You can now make the change you would like to hotfix. From the GitHub UI,
181181
open a PR to merge your change into the branch you created in step #3,
182182
**not** `master`. See https://github.com/dart-lang/webdev/pull/1867 as an
183183
example.

dwds/debug_extension/web/background.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const _notADartAppAlert = 'No Dart application detected.'
3939
// Extensions allowed for cross-extension communication.
4040
//
4141
// This is only used to forward outgoing messages, as incoming messages are
42-
// restricted by `externally_connectable` in the extension manijest.json.
42+
// restricted by `externally_connectable` in the extension manifest.json.
4343
const _allowedExtensions = {
4444
'nbkbficgbembimioedhceniahniffgpl', // AngularDart DevTools
4545
};

dwds/debug_extension_mv3/tool/build_extension.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// INSTRUCTIONS:
66

7-
// Builds the unminifed dart2js extension (see DDC issue:
8-
// see DDC issue: https://github.com/dart-lang/sdk/issues/49869).
7+
// Builds the unminified dart2js extension (see DDC issue:
8+
// https://github.com/dart-lang/sdk/issues/49869).
99

1010
// Run from the extension root directory:
1111
// - For dev: dart run tool/build_extension.dart

dwds/debug_extension_mv3/web/storage.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@ enum StorageObject {
2424
isAuthenticated,
2525
multipleAppsDetected;
2626

27-
Persistance get persistance {
27+
Persistence get persistence {
2828
switch (this) {
2929
case StorageObject.debugInfo:
30-
return Persistance.sessionOnly;
30+
return Persistence.sessionOnly;
3131
case StorageObject.devToolsOpener:
32-
return Persistance.acrossSessions;
32+
return Persistence.acrossSessions;
3333
case StorageObject.devToolsUri:
34-
return Persistance.sessionOnly;
34+
return Persistence.sessionOnly;
3535
case StorageObject.encodedUri:
36-
return Persistance.sessionOnly;
36+
return Persistence.sessionOnly;
3737
case StorageObject.isAuthenticated:
38-
return Persistance.sessionOnly;
38+
return Persistence.sessionOnly;
3939
case StorageObject.multipleAppsDetected:
40-
return Persistance.sessionOnly;
40+
return Persistence.sessionOnly;
4141
}
4242
}
4343
}
4444

45-
enum Persistance {
45+
enum Persistence {
4646
sessionOnly,
4747
acrossSessions;
4848
}
@@ -58,7 +58,7 @@ Future<bool> setStorageObject<T>({
5858
value is String ? value : jsonEncode(serializers.serialize(value));
5959
final storageObj = <String, String>{storageKey: json};
6060
final completer = Completer<bool>();
61-
final storageArea = _getStorageArea(type.persistance);
61+
final storageArea = _getStorageArea(type.persistence);
6262
storageArea.set(
6363
jsify(storageObj),
6464
allowInterop(() {
@@ -75,7 +75,7 @@ Future<bool> setStorageObject<T>({
7575
Future<T?> fetchStorageObject<T>({required StorageObject type, int? tabId}) {
7676
final storageKey = _createStorageKey(type, tabId);
7777
final completer = Completer<T?>();
78-
final storageArea = _getStorageArea(type.persistance);
78+
final storageArea = _getStorageArea(type.persistence);
7979
storageArea.get(
8080
[storageKey],
8181
allowInterop((Object? storageObj) {
@@ -105,7 +105,7 @@ Future<T?> fetchStorageObject<T>({required StorageObject type, int? tabId}) {
105105
Future<bool> removeStorageObject<T>({required StorageObject type, int? tabId}) {
106106
final storageKey = _createStorageKey(type, tabId);
107107
final completer = Completer<bool>();
108-
final storageArea = _getStorageArea(type.persistance);
108+
final storageArea = _getStorageArea(type.persistence);
109109
storageArea.remove(
110110
[storageKey],
111111
allowInterop(() {
@@ -144,14 +144,14 @@ void interceptStorageChange<T>({
144144
}
145145
}
146146

147-
StorageArea _getStorageArea(Persistance persistance) {
147+
StorageArea _getStorageArea(Persistence persistence) {
148148
// MV2 extensions don't have access to session storage:
149149
if (!isMV3) return chrome.storage.local;
150150

151-
switch (persistance) {
152-
case Persistance.acrossSessions:
151+
switch (persistence) {
152+
case Persistence.acrossSessions:
153153
return chrome.storage.local;
154-
case Persistance.sessionOnly:
154+
case Persistence.sessionOnly:
155155
return chrome.storage.session;
156156
}
157157
}

dwds/lib/data/extension_request.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class ExtensionRequest
2626

2727
String get command;
2828

29-
/// Contains JSON-encoded parameters, if avaiable.
29+
/// Contains JSON-encoded parameters, if available.
3030
String? get commandParams;
3131
}
3232

@@ -49,7 +49,7 @@ abstract class ExtensionResponse
4949
/// Contains a JSON-encoded payload.
5050
String get result;
5151

52-
/// Contains an error, if avaiable.
52+
/// Contains an error, if available.
5353
String? get error;
5454
}
5555

dwds/lib/src/debugging/classes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ClassHelper extends Domain {
6060
final classRef = classRefFor(libraryId, splitId.last);
6161
clazz = await _constructClass(libraryRef, classRef);
6262
if (clazz == null) {
63-
throw Exception('Could not contruct class: $classRef');
63+
throw Exception('Could not construct class: $classRef');
6464
}
6565
return _classes[objectId] = clazz;
6666
}

dwds/lib/src/debugging/execution_context.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RemoteDebuggerExecutionContext extends ExecutionContext {
2020

2121
/// Contexts that may contain a Dart application.
2222
///
23-
/// Context can be null if an error has occured and we cannot detect
23+
/// Context can be null if an error has occurred and we cannot detect
2424
/// and parse the context ID.
2525
late StreamQueue<int> _contexts;
2626

dwds/lib/src/events.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DwdsStats {
1515
DateTime? _devToolsStart;
1616
DateTime? get devToolsStart => _devToolsStart;
1717

18-
/// Records and returns weither the debugger is ready.
18+
/// Records and returns whether the debugger is ready.
1919
bool _isFirstDebuggerReady = true;
2020
bool get isFirstDebuggerReady {
2121
final wasReady = _isFirstDebuggerReady;

dwds/lib/src/handlers/injector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class DwdsInjector {
7777
} else if (request.url.path.endsWith(bootstrapJsExtension)) {
7878
final ifNoneMatch = request.headers[HttpHeaders.ifNoneMatchHeader];
7979
if (ifNoneMatch != null) {
80-
// Disable caching of the inner hander by manually modifying the
80+
// Disable caching of the inner handler by manually modifying the
8181
// if-none-match header before forwarding the request.
8282
request = request.change(
8383
headers: {

0 commit comments

Comments
 (0)