Skip to content

Commit 7981b3a

Browse files
Replace typo "wih" with "with" (#5488)
Replaces the typo "wih" with "with". --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] This PR doesn’t contain automatically generated corrections or text (Grammarly, LLMs, and similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`. - Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/doc/code-excerpts.md) indicated by `<?code-excerpt` need to be updated in their source `.dart` file as well. </details>
1 parent 9755ece commit 7981b3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/language/lib/patterns/pattern_types.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ void miscDeclAnalyzedButNotTested() {
187187
case (:var untyped, :int typed): // ...
188188
}
189189

190-
// Record pattern wih null-check and null-assert subpatterns:
190+
// Record pattern with null-check and null-assert subpatterns:
191191
switch (record) {
192192
case (checked: var checked?, asserted: var asserted!): // ...
193193
case (:var checked?, :var asserted!): // ...
194194
}
195195

196-
// Record pattern wih cast subpattern:
196+
// Record pattern with cast subpattern:
197197
var (untyped: untyped as int, typed: typed as String) = record;
198198
var (:untyped as int, :typed as String) = record;
199199
// #enddocregion record-getter

src/language/pattern-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,13 @@ switch (record) {
383383
case (:var untyped, :int typed): // ...
384384
}
385385
386-
// Record pattern wih null-check and null-assert subpatterns:
386+
// Record pattern with null-check and null-assert subpatterns:
387387
switch (record) {
388388
case (checked: var checked?, asserted: var asserted!): // ...
389389
case (:var checked?, :var asserted!): // ...
390390
}
391391
392-
// Record pattern wih cast subpattern:
392+
// Record pattern with cast subpattern:
393393
var (untyped: untyped as int, typed: typed as String) = record;
394394
var (:untyped as int, :typed as String) = record;
395395
```

0 commit comments

Comments
 (0)