Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit acf5375

Browse files
committed
Revert editor whitespace as it is indent-sensitive
1 parent a528c7e commit acf5375

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

index.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ <h2>Featuring</h2>
4747
<div class="col-md-8">
4848
<div id="active-code">
4949
<button type="button" class="btn btn-primary btn-sm" id="run-code">Run</button>
50-
<div id="editor">// This code is editable and runnable!
51-
fn main() {
52-
// A simple integer calculator:
53-
// `+` or `-` means add or subtract by 1
54-
// `*` or `/` means multiply or divide by 2
55-
56-
let program = "+ + * - /";
57-
let mut accumulator = 0;
58-
59-
for token in program.chars() {
60-
match token {
61-
'+' => accumulator += 1,
62-
'-' => accumulator -= 1,
63-
'*' => accumulator *= 2,
64-
'/' => accumulator /= 2,
65-
_ => { /* ignore everything else */ }
66-
}
67-
}
68-
69-
println!("The program \"{}\" calculates the value {}",
70-
program, accumulator);
71-
}</div>
50+
<div id="editor">// This code is editable and runnable!
51+
fn main() {
52+
// A simple integer calculator:
53+
// `+` or `-` means add or subtract by 1
54+
// `*` or `/` means multiply or divide by 2
55+
56+
let program = "+ + * - /";
57+
let mut accumulator = 0;
58+
59+
for token in program.chars() {
60+
match token {
61+
'+' => accumulator += 1,
62+
'-' => accumulator -= 1,
63+
'*' => accumulator *= 2,
64+
'/' => accumulator /= 2,
65+
_ => { /* ignore everything else */ }
66+
}
67+
}
68+
69+
println!("The program \"{}\" calculates the value {}",
70+
program, accumulator);
71+
}</div>
7272
<div id="result">
7373
<a id="playlink" onclick="goPlayground()" ><i class="icon-link-ext"></i></a>
7474
</div>

0 commit comments

Comments
 (0)