Skip to content

Commit da37045

Browse files
authored
Update imports.md
Without the additional braces making the `SimpleRef.` optional in `ImportExpr`, an expression such as `import java as j` wouldn't technically be accepted by the grammar specification. Co-authored-by: keynmol
1 parent d0182b4 commit da37045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/changed-features/imports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ are offered under settings `-source 3.1-migration -rewrite`.
4848

4949
```
5050
Import ::= ‘import’ ImportExpr {‘,’ ImportExpr}
51-
ImportExpr ::= SimpleRef {‘.’ id} ‘.’ ImportSpec
51+
ImportExpr ::= { SimpleRef {‘.’ id} ‘.’ } ImportSpec
5252
ImportSpec ::= NamedSelector
5353
| WildcardSelector
5454
| ‘{’ ImportSelectors) ‘}’

0 commit comments

Comments
 (0)