Skip to content

Commit 421a251

Browse files
authored
Merge pull request #2 from slashexx/preview
Fix rust logic
2 parents 5f3b6bb + c281c6e commit 421a251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const INITIAL_CODE: Record<Language, string> = {
2222
python: 'print("Hello, World!")',
2323
java: 'public class Main {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}',
2424
go: 'package main\n\nimport "fmt"\n\nfunc main() {\n fmt.Println("Hello, World!")\n}',
25-
rust: 'fn main() {\n\tprintln!("Hello world !")\n}'
25+
rs: 'fn main() {\n\tprintln!("Hello world !")\n}'
2626
};
2727

2828
const LANGUAGE_CONFIGS = {
@@ -31,7 +31,7 @@ const LANGUAGE_CONFIGS = {
3131
python: { label: "Python", icon: "devicon-python-plain colored" , color: "text-yellow-500" },
3232
java: { label: "Java", icon: "devicon-java-plain colored", color: "text-red-500" },
3333
go: { label: "Go", icon: "devicon-go-plain colored", color: "text-cyan-500" },
34-
rust: { label: "Rust", icon: "devicon-rust-original colored", color: "text-red-500"}
34+
rs: { label: "Rust", icon: "devicon-rust-original colored", color: "text-red-500"}
3535
};
3636

3737
function App() {

0 commit comments

Comments
 (0)