Fix ES5 compatibility.
This commit is contained in:
parent
8a05f0d499
commit
eba90f5440
1 changed files with 2 additions and 2 deletions
|
|
@ -234,9 +234,9 @@ function run_rust_code(code_block) {
|
|||
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",
|
||||
optimize: "0",
|
||||
code: text,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue