Skip to content

Commit 878efcd

Browse files
doc: improve selective import docs (#10573)
1 parent eb5afb7 commit 878efcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/docs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,8 @@ fn main() {
10611061
println('Hello, $name!')
10621062
}
10631063
```
1064-
Note: This is not allowed for constants - they must always be prefixed.
1064+
Note: This will import the module as well. Also, this is not allowed for
1065+
constants - they must always be prefixed.
10651066

10661067
You can import several specific symbols at once:
10671068

0 commit comments

Comments
 (0)