Commit a289ba6 1 parent 10600ba commit a289ba6 Copy full SHA for a289ba6
File tree 2 files changed +4
-4
lines changed
examples/language/lib/patterns
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,13 @@ void miscDeclAnalyzedButNotTested() {
187
187
case (: var untyped, : int typed): // ...
188
188
}
189
189
190
- // Record pattern wih null-check and null-assert subpatterns:
190
+ // Record pattern with null-check and null-assert subpatterns:
191
191
switch (record) {
192
192
case (checked: var checked? , asserted: var asserted! ): // ...
193
193
case (: var checked? , : var asserted! ): // ...
194
194
}
195
195
196
- // Record pattern wih cast subpattern:
196
+ // Record pattern with cast subpattern:
197
197
var (untyped: untyped as int , typed: typed as String ) = record;
198
198
var (: untyped as int , : typed as String ) = record;
199
199
// #enddocregion record-getter
Original file line number Diff line number Diff line change @@ -383,13 +383,13 @@ switch (record) {
383
383
case (:var untyped, :int typed): // ...
384
384
}
385
385
386
- // Record pattern wih null-check and null-assert subpatterns:
386
+ // Record pattern with null-check and null-assert subpatterns:
387
387
switch (record) {
388
388
case (checked: var checked?, asserted: var asserted!): // ...
389
389
case (:var checked?, :var asserted!): // ...
390
390
}
391
391
392
- // Record pattern wih cast subpattern:
392
+ // Record pattern with cast subpattern:
393
393
var (untyped: untyped as int, typed: typed as String) = record;
394
394
var (:untyped as int, :typed as String) = record;
395
395
```
You can’t perform that action at this time.
0 commit comments