Skip to content

Commit 3b49457

Browse files
committed
Change module name to "example"
1 parent 2198afb commit 3b49457

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/langmodule/data.lmc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = example_module
1+
name = example
22
description = This is an example native module that can be used as a base for developing native modules.
33
version = 1.0.0-beta
44

src/main/langmodule/lang/lib.lang

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ $internalVariable = 42
3434
fn.moduleExportNormalVariable(pointerFromLib, $[internalVariable])
3535

3636
# Accessing exported module variables within the module (The module name must be used)
37-
fn.println(Int value from lib is [[example_module]]::$intFromLib and the int value from native is [[example_module]]::$intVar)
37+
fn.println(Int value from lib is [[example]]::$intFromLib and the int value from native is [[example]]::$intVar)
3838

3939
# Modifying values of exported module variables (The exported variable may not be final)
40-
[[example_module]]::$intFromLib += 1000
40+
[[example]]::$intFromLib += 1000
4141

42-
[[example_module]]::$secondIntFromLib = 30
42+
[[example]]::$secondIntFromLib = 30
4343

44-
#[[example_module]]::$newInt = 2 # If uncommented: error: Module variables may only be created with the module export variable functions
44+
#[[example]]::$newInt = 2 # If uncommented: error: Module variables may only be created with the module export variable functions
4545

4646
return parser.op(42 ** 2 ^ 15)

0 commit comments

Comments
 (0)