Fix ES5 compatibility.
This commit is contained in:
parent
8a05f0d499
commit
eba90f5440
|
@ -234,9 +234,9 @@ function run_rust_code(code_block) {
|
||||||
result_block = code_block.find(".result");
|
result_block = code_block.find(".result");
|
||||||
}
|
}
|
||||||
|
|
||||||
let text = code_block.find(".language-rust").text();
|
var text = code_block.find(".language-rust").text();
|
||||||
|
|
||||||
let params = {
|
var params = {
|
||||||
version: "stable",
|
version: "stable",
|
||||||
optimize: "0",
|
optimize: "0",
|
||||||
code: text,
|
code: text,
|
||||||
|
|
Loading…
Reference in New Issue