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

Commit a528c7e

Browse files
committed
Standardize whitespace in index.html
The whitespace is now 4 spaces for leading <div> tags and two spaces for indentations. In addition, tabs were removed and replaced with spaces.
1 parent ba21dcd commit a528c7e

File tree

1 file changed

+54
-53
lines changed

1 file changed

+54
-53
lines changed

index.html

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010
that runs blazingly fast,
1111
prevents almost all crashes<span class="asterisk">*</span>,
1212
and eliminates data races.
13-
<br/>
14-
<a href="http://doc.rust-lang.org/master/intro.html">Show me more!</a>
13+
<br/>
14+
<a href="http://doc.rust-lang.org/master/intro.html">Show me more!</a>
1515
</p>
1616
</div>
1717
<div class="col-md-4 install-box">
18-
<span class="version-rec-box-inner">
19-
Recommended Version:<br>
20-
<span id="install-version">
21-
nightly
22-
(<span>source</span>)
23-
</span>
18+
<span class="version-rec-box-inner">
19+
Recommended Version:<br>
20+
<span id="install-version">
21+
nightly
22+
(<span>source</span>)
2423
</span>
25-
<a class="btn btn-primary" id="inst-link" href="http://static.rust-lang.org/dist/rust-nightly.tar.gz">Install</a>
24+
</span>
25+
<a class="btn btn-primary" id="inst-link"
26+
href="http://static.rust-lang.org/dist/rust-nightly.tar.gz">Install</a>
2627
<a class="btn btn-default" href="install.html" role="button">Other Downloads</a>
2728
</div>
2829
</div>
@@ -47,55 +48,55 @@ <h2>Featuring</h2>
4748
<div id="active-code">
4849
<button type="button" class="btn btn-primary btn-sm" id="run-code">Run</button>
4950
<div id="editor">// This code is editable and runnable!
50-
fn main() {
51-
// A simple integer calculator:
52-
// `+` or `-` means add or subtract by 1
53-
// `*` or `/` means multiply or divide by 2
54-
55-
let program = "+ + * - /";
56-
let mut accumulator = 0;
57-
58-
for token in program.chars() {
59-
match token {
60-
'+' => accumulator += 1,
61-
'-' => accumulator -= 1,
62-
'*' => accumulator *= 2,
63-
'/' => accumulator /= 2,
64-
_ => { /* ignore everything else */ }
65-
}
66-
}
67-
68-
println!("The program \"{}\" calculates the value {}",
69-
program, accumulator);
70-
}</div>
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>
7172
<div id="result">
7273
<a id="playlink" onclick="goPlayground()" ><i class="icon-link-ext"></i></a>
7374
</div>
7475
</div>
7576
<div id="static-code">
76-
<pre class='rust'>
77-
<span class='kw'>fn</span> main() {
78-
<span class='comment'>// A simple integer calculator:
79-
// `+` or `-` means add or subtract by 1
80-
// `*` or `/` means multiply or divide by 2</span>
81-
82-
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
83-
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
84-
85-
<span class='kw'>for</span> token in program.chars() {
86-
<span class='kw'>match</span> token {
87-
<span class='string'>'+'</span> => accumulator <span class='op'>+=</span> <span class='number'>1</span>,
88-
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
89-
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
90-
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
91-
_ => { <span class='comment'>/* ignore everything else */</span> }
92-
}
93-
}
94-
95-
<span class='prelude-val'>println!</span>(<span class='string'>"The program \"{}\" calculates the value {}"</span>,
96-
program, accumulator);
97-
}
98-
</pre>
77+
<pre class='rust'>
78+
<span class='kw'>fn</span> main() {
79+
<span class='comment'>// A simple integer calculator:
80+
// `+` or `-` means add or subtract by 1
81+
// `*` or `/` means multiply or divide by 2</span>
82+
83+
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
84+
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
85+
86+
<span class='kw'>for</span> token in program.chars() {
87+
<span class='kw'>match</span> token {
88+
<span class='string'>'+'</span> => accumulator <span class='op'>+=</span> <span class='number'>1</span>,
89+
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
90+
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
91+
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
92+
_ => { <span class='comment'>/* ignore everything else */</span> }
93+
}
94+
}
95+
96+
<span class='prelude-val'>println!</span>(<span class='string'>"The program \"{}\" calculates the value {}"</span>,
97+
program, accumulator);
98+
}
99+
</pre>
99100
</div>
100101
</div>
101102
</div>

0 commit comments

Comments
 (0)