mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-28 11:16:49 +03:00
Adds a hello_world example to Leo
This commit is contained in:
parent
dd740070f0
commit
0a34693bae
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,4 @@
|
||||
/target
|
||||
**.idea/
|
||||
Leo.toml
|
||||
src/
|
||||
inputs/
|
||||
outputs/
|
||||
*.DS_Store
|
||||
|
3
examples/hello_world/Leo.toml
Normal file
3
examples/hello_world/Leo.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[package]
|
||||
name = "hello_world"
|
||||
version = "0.1.0"
|
5
examples/hello_world/src/main.leo
Normal file
5
examples/hello_world/src/main.leo
Normal file
@ -0,0 +1,5 @@
|
||||
// The 'hello_world' main function.
|
||||
function main() -> u32 {
|
||||
let a = 1 + 1;
|
||||
return a
|
||||
}
|
Loading…
Reference in New Issue
Block a user