Skip to content

Commit aa8ee9d

Browse files
authored
[Augmentations] Fix typo in a scoping example (#4059)
1 parent 94194ce commit aa8ee9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

working/augmentation-libraries/feature-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ that includes omitting the `extends` keyword. For a variable or parameter,
313313
a `var` keyword may replace the type.
314314

315315
When applying an augmenting declaration that contains a type annotation at
316-
one of these positions, to a defintion to be augmented, it's a compile-time
316+
one of these positions, to a definition to be augmented, it's a compile-time
317317
error if the type denoted by the augmenting declaration is not the same
318318
type as the type that the augmented definition has at the corresponding
319319
position. __An augmenting declaration can omit type annotations, but if it
@@ -999,7 +999,7 @@ whether there is an external implementation to call?**
999999
All declarations can be augmented with metadata annotations and/or doc comments
10001000
directly preceding an augmenting declaration.
10011001

1002-
In both cases, these should be appended to exising metadata or doc comments. For
1002+
In both cases, these should be appended to existing metadata or doc comments. For
10031003
metadata annotations, these may trigger additional macro applications.
10041004

10051005
## Scoping
@@ -1036,7 +1036,7 @@ part 'some_augment.dart';
10361036
const b = 37;
10371037
10381038
class C {
1039-
const int b = 42;
1039+
static const int b = 42;
10401040
bool isEven(int n) {
10411041
if (n == 0) return true;
10421042
return !_isOdd(n - 1);

0 commit comments

Comments
 (0)