Skip to content

Commit d35ddfe

Browse files
committed
Change default main
1 parent 831c44f commit d35ddfe

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

ui/frontend/Help.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ const LEO_GITHUB_URL = 'https://github.com/LeonardoA77';
2323

2424
const CRATE_EXAMPLE = `import io.vavr.collection.Vector;
2525
26-
class Main {
27-
public static void main(String[] args) {
28-
System.out.println(Vector.of(
29-
"a", "b", "c"
30-
));
31-
}
26+
void main() {
27+
IO.println(Vector.of(
28+
"a", "b", "c"
29+
))
3230
}
3331
`;
3432

ui/frontend/reducers/code.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import { Action, ActionType } from '../actions';
22
import { performGistLoad } from './output/gist'
33
import { performFormat } from './output/format'
44

5-
const DEFAULT: State = `public class Main {
6-
public static void main(String[] args) {
7-
System.out.println("Hello, world!");
8-
}
5+
const DEFAULT: State = `void main() {
6+
IO.println("Hello, world!");
97
}`;
108

119
export type State = string;

0 commit comments

Comments
 (0)