We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32e80c commit 116cdf5Copy full SHA for 116cdf5
README.md
@@ -36,19 +36,18 @@ pub fn add(a: u32, b: u32) -> u32 {
36
a + b
37
}
38
39
-fuste::entry! {
40
- fn main() -> Result<(), ()> {
41
- let mut j = 0;
42
- for i in 0..10 {
43
- assert_eq!(i, i);
44
- j += i;
45
- j = add(j, i);
46
- println!("Hello, world!");
47
- println!("i: {}, j: {}", i, j);
48
- }
49
-
50
- Ok(())
+#[fuste::main]
+fn main() -> Result<(), ()> {
+ let mut j = 0;
+ for i in 0..10 {
+ assert_eq!(i, i);
+ j += i;
+ j = add(j, i);
+ println!("Hello, world!");
+ println!("i: {}, j: {}", i, j);
51
+
+ Ok(())
52
53
```
54
6. Run!
0 commit comments