Skip to content

Commit

Permalink
update <print>
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed May 14, 2024
1 parent 2b6a05a commit d2d9d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ if (params.isTrue("embed")) {

const code =
params.get("code") ??
`#include <iostream>
#include <format>
`#include <print>
int main() {
std::cout << std::format("Hello, {}!\\n", "world");
std::println("Hello, {}!", "world");
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { COMPILE_ARGS } from "./config";
import { AnsiUp } from "ansi_up";

const COMPILER_EXPLORER_API_BASE = "https://godbolt.org/api";
const COMPILER_ID = "g132";
const COMPILER_ID = "g141";

export interface ExecuteOptions {
args: string[];
Expand Down

0 comments on commit d2d9d07

Please sign in to comment.