Skip to content

Commit 0ea4770

Browse files
committed
Change bespoke note to a tip
1 parent e220b9d commit 0ea4770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/modules.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ Submodules are modules inside modules. They are automatically created when you c
199199

200200
The difference is that `export module some-module` _only_ adds the module as a submodule, while `export use some-module` _also_ re-exports the submodule's definitions. Since definitions of submodules are available when importing from a module, `export use some-module` is typically redundant, unless you want to re-export its definitions without the namespace prefix.
201201

202-
> **Note** > `module` without `export` defines only a local module, it does not export a submodule.
202+
::: tip Note
203+
`module` without `export` defines only a local module, it does not export a submodule.
204+
:::
203205

204206
Let's illustrate this with an example. Assume three files:
205207

0 commit comments

Comments
 (0)