Skip to content

Commit c2e4cc3

Browse files
authored
Update README.md
1 parent 7655faf commit c2e4cc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ NexLang is a custom systems programming language focused on providing strong con
1616

1717
#### Example Print Implementation
1818
```rs
19+
mod print;
20+
1921
fn printchar(letter: char) {
2022
let print_addr: *char = (0 - 65524) as (*char);
2123
(*print_addr) = letter;
@@ -40,6 +42,8 @@ fn main(x: i32, y: i32) -> i32 {
4042
```
4143
#### Example Power Implementation
4244
```rs
45+
mod main;
46+
4347
fn power(base: i32, exponent: i32) -> i32 {
4448
if (exponent == 1) {
4549
return base;

0 commit comments

Comments
 (0)