mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
tweak doc/site/modularity.markdown
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
This commit is contained in:
@ -45,7 +45,7 @@ if (thirsty) {
|
|||||||
If you need to import a variable under a different name, you can use
|
If you need to import a variable under a different name, you can use
|
||||||
`import "..." for Name as OtherName`. This looks up the top-level variable
|
`import "..." for Name as OtherName`. This looks up the top-level variable
|
||||||
`Name` in *that* module, but declares a variable called `OtherName` in *this* module
|
`Name` in *that* module, but declares a variable called `OtherName` in *this* module
|
||||||
with it's value.
|
with its value.
|
||||||
|
|
||||||
<pre class="snippet">
|
<pre class="snippet">
|
||||||
import "liquids" for Water //Water is now taken
|
import "liquids" for Water //Water is now taken
|
||||||
|
|||||||
Reference in New Issue
Block a user