mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-05-15 01:52:42 +00:00
d976dc883b
via panflute and https://github.com/rust-lang/rust-by-example
23 lines
563 B
Rust
23 lines
563 B
Rust
// ./src/hello.md
|
|
|
|
|
|
// This is a comment, and is ignored by the compiler
|
|
// You can test this code by clicking the "Run" button over there ->
|
|
// or if you prefer to use your keyboard, you can use the "Ctrl + Enter" shortcut
|
|
|
|
// This code is editable, feel free to hack it!
|
|
// You can always return to the original code by clicking the "Reset" button ->
|
|
|
|
// This is the main function
|
|
fn part0() {
|
|
// Statements here are executed when the compiled binary is called
|
|
|
|
// Print text to the console
|
|
println!("Hello World!");
|
|
}
|
|
|
|
pub fn main() {
|
|
part0();
|
|
}
|
|
|