Skip to content

Commit ab94776

Browse files
authored
mention that import X and using X:X are the same (#38590)
1 parent 0b1b5f7 commit ab94776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/src/manual/modules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ import NiceStuff
139139
```
140140

141141
brings *only* the module name into scope. Users would need to use `NiceStuff.DOG`, `NiceStuff.Dog`, and `NiceStuff.nice` to access its contents. Usually, `import ModuleName` is used in contexts when the user wants to keep the namespace clean.
142+
As we will see in the next section `import NiceStuff` is equivalent to `using NiceStuff: NiceStuff`.
142143

143144
You can combine multiple `using` and `import` statements of the same kind in a comma-separated expression, e.g.
144145

0 commit comments

Comments
 (0)