File tree Expand file tree Collapse file tree 4 files changed +98
-96
lines changed Expand file tree Collapse file tree 4 files changed +98
-96
lines changed Original file line number Diff line number Diff line change 1
1
export const basicCode = [
2
2
{
3
3
title : 'hello world' ,
4
- code : `use std::io;
5
- fn main() i64 {
6
- io::print_s("hello world\\n");
4
+ code : `fn main() i64 {
5
+ println!("hello world!");
7
6
return 0;
8
- }` ,
7
+ }
8
+ ` ,
9
9
} ,
10
10
{
11
11
title : 'fibonacci' ,
12
- code : `use std::io;
13
- fn main() i64 {
14
- io::printi64ln(getFibonacci(10) );
12
+ code : `fn main() i64 {
13
+ let result = getFibonacci(10);
14
+ println!(result );
15
15
return 0;
16
16
}
17
17
Original file line number Diff line number Diff line change 31
31
"registry" : " https://registry.npmjs.org/"
32
32
},
33
33
"dependencies" : {
34
- "@pivot-lang/pivot-lang" : " 0.1.2-c22309a .0" ,
34
+ "@pivot-lang/pivot-lang" : " 0.1.2-251570a .0" ,
35
35
"monaco-editor" : " ^0.37.1" ,
36
36
"monaco-themes" : " ^0.4.4" ,
37
37
"vscode-languageserver-types" : " ^3.17.3"
You can’t perform that action at this time.
0 commit comments