Skip to content

Commit bce50b3

Browse files
committed
Small change to docs for module import syntax
1 parent a2cf374 commit bce50b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/manual/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ In contrast,
144144
julia> import .NiceStuff
145145
```
146146

147-
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.
148-
As we will see in the next section `import .NiceStuff` is equivalent to `using .NiceStuff: NiceStuff`.
147+
brings *only* the module name into scope. Users would need to use `NiceStuff.DOG`, `NiceStuff.Dog`, and `NiceStuff.nice` to access its contents.
148+
As we will see in the next section `import .NiceStuff` is equivalent to `using .NiceStuff: NiceStuff`. Usually, `import ModuleName` or `using ModuleName: ModuleName` is used in contexts when the user wants to keep the namespace clean.
149149

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

0 commit comments

Comments
 (0)