Skip to content

Commit c537260

Browse files
pattobrienCommit Queue
authored andcommitted
fix: Typos in element model migration guide.
Closes #60998 GitOrigin-RevId: bae0908 Change-Id: Iea1879bfc62016e0f70bc442a197aae321e17b61 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/437125 Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 68b1fab commit c537260

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/analyzer/doc/element_model_migration_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ element will have exactly one fragment.
226226

227227
Let's look at two examples of migrating some code. The examples are taken from
228228
the analysis_server package, so they’re real code, and should be fairly
229-
epresentative without being overly complex.
229+
representative without being overly complex.
230230

231231
### Add missing enum case clauses
232232

@@ -235,7 +235,7 @@ uses the element model in a couple of ways.
235235

236236
To start, we need to understand how the code works, which we’ll do by looking at
237237
the pre-migrated code. It starts by getting the type of the value being switched
238-
ver. If the type is an `InterfaceType` then it gets the element associated with
238+
over. If the type is an `InterfaceType` then it gets the element associated with
239239
the type.
240240

241241
```dart
@@ -248,7 +248,7 @@ It then checks to see whether the element is an `EnumElement`.
248248
if (enumElement is EnumElement) {
249249
// ...
250250
}
251-
```
251+
```
252252

253253
If it is, the list of enum constants is iterated over and each constant is added
254254
to a collection.

0 commit comments

Comments
 (0)