Skip to content

Commit 6f73806

Browse files
authored
Improve comment in toplevel.c [NFC] (#52810)
1 parent 5b6a94d commit 6f73806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/toplevel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,14 @@ jl_value_t *jl_toplevel_eval_flex(jl_module_t *JL_NONNULL m, jl_value_t *e, int
759759
if (name != NULL)
760760
u = (jl_module_t*)jl_eval_global_var(import, name);
761761
if (from) {
762-
// `using A: B` syntax
762+
// `using A: B` and `using A: B.c` syntax
763763
jl_module_use(m, import, name);
764764
}
765765
else {
766766
if (!jl_is_module(u))
767767
jl_eval_errorf(m, "invalid using path: \"%s\" does not name a module",
768768
jl_symbol_name(name));
769-
// `using A.B` syntax
769+
// `using A` and `using A.B` syntax
770770
jl_module_using(m, u);
771771
if (m == jl_main_module && name == NULL) {
772772
// TODO: for now, `using A` in Main also creates an explicit binding for `A`

0 commit comments

Comments
 (0)