Skip to content

Commit 0b1f014

Browse files
committed
Typo fixes in enum shorthands proposal.
1 parent 64b0366 commit 0b1f014

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

working/3616 - enum value shorthand/proposal-simple-lrhn.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ If a type scheme *S*:
192192
then the type scheme does not denote any declaration or namespace.
193193

194194
_Platform library declared types can be exempt from rules that apply to user
195-
declarations. For example the `Object` and `Null` classes appear to be `class`
195+
declarations. For example, the `Object` and `Null` classes appear to be `class`
196196
declarations in the library source code, but their types do not have a superclass,
197-
which any user-written `class` declaration myst have.
197+
which any user-written `class` declaration must have.
198198
That makes it unclear/under-specified whether these types are actually `class`
199199
declarations, or if they merely count as such in some ways, and if so,
200200
what they really are._
@@ -248,7 +248,7 @@ an identifier (or qualified identifier) denoting that declaration.
248248
It's a compile-time error if the shorthand context does not denote a declaration
249249
and static namespace.
250250
It's a compile-time error if a static member lookup with base name `id`/`new`
251-
on that declartion does not find a static member.
251+
on that declaration does not find a static member.
252252
It's a compile-time error if that declaration does not have a static member
253253
with base name `id`, or an unnamed constructor for `.new`.
254254
Otherwise the `.id`/`.new` is treated as denoting that member and works just like
@@ -422,7 +422,7 @@ _The only `.id` selector which can come after a constant expression
422422
and still be constant is `String.length`, and it's very hard to
423423
make that integer satisfy a context type of `String`. The only other
424424
selector which can follow complete constant expression and still be
425-
constant is the not-null check `!`, which is rarerly useful in
425+
constant is the not-null check `!`, which is rarely useful in
426426
constant expressions._
427427

428428
A static member shorthand expression should be a _potentially constant_
@@ -431,7 +431,7 @@ selectors expression would be, which currently means that
431431
it's a potentially constant expression if and only if
432432
it's a constant expression.
433433
_There is no current way for an explicit static member access
434-
followed by zero or more selectorsto be a potentially constant expression
434+
followed by zero or more selectors to be a potentially constant expression
435435
if it contains a constructor parameter anywhere. That "anywhere"
436436
is necessarily in a parameter expression, and the only invocation with
437437
parameters that are allowed in a potentially constant expression is

0 commit comments

Comments
 (0)