From 925b5d30bf91073632a57b547be72c217e50e2d7 Mon Sep 17 00:00:00 2001 From: Kai Schmidt Date: Mon, 18 Nov 2024 15:06:37 -0800 Subject: [PATCH] clarify module exports --- site/src/tutorial.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/tutorial.rs b/site/src/tutorial.rs index 9304b2f38..88a906183 100644 --- a/site/src/tutorial.rs +++ b/site/src/tutorial.rs @@ -1562,6 +1562,10 @@ fn TutorialModules() -> impl IntoView { // Should fail

"Names from inside the module can be ""made"" visible by following the module name with a ""~"" and a list of the names to make visible."

+

"Note that these names are brought into the module's parent scope as private bindings, so they cannot be referenced from outside the parent."

+ // Should fail +

"Names must be re-bound in the parent to be made visible."

+

"Names defined above the module can be referenced inside it."