Skip to content

Commit 8876bad

Browse files
committed
Invert RBE and Rustlings order
A person reading the Learn Rust page left to right or top to bottom will read the Rustlings section before the RBE section, but the former mentions the latter, so the person will encounter RBE before having read about it. Inverting the order of the two sections prevents these unnecessary "forward references".
1 parent 8290190 commit 8876bad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/learn/index.html.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424
</div>
2525
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb0-ns ph4-l">
2626
<div class="v-top pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
27-
<p class="flex-grow-1">{{fluent "learn-rustlings"}}</p>
27+
<p class="flex-grow-1">{{fluent "learn-rbe"}}</p>
2828
<div class="buttons">
29-
<a class="button button-secondary" href="https://github.com/rust-lang/rustlings/">{{fluent "learn-rustlings-button"}}</a>
29+
<a class="button button-secondary" href="https://doc.rust-lang.org/rust-by-example/">{{fluent "learn-rbe-button"}}</a>
30+
{{#if (fluent "translated-rbe")}}<a class="button-additional" href={{fluent "translated-rbe"}}>{{fluent "translated-rbe-button"}}</a>{{/if}}
3031
</div>
3132
</div>
3233
</div>
3334
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb0-ns ph4-l">
3435
<div class="v-top pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
35-
<p class="flex-grow-1">{{fluent "learn-rbe"}}</p>
36+
<p class="flex-grow-1">{{fluent "learn-rustlings"}}</p>
3637
<div class="buttons">
37-
<a class="button button-secondary" href="https://doc.rust-lang.org/rust-by-example/">{{fluent "learn-rbe-button"}}</a>
38-
{{#if (fluent "translated-rbe")}}<a class="button-additional" href={{fluent "translated-rbe"}}>{{fluent "translated-rbe-button"}}</a>{{/if}}
38+
<a class="button button-secondary" href="https://github.com/rust-lang/rustlings/">{{fluent "learn-rustlings-button"}}</a>
3939
</div>
4040
</div>
4141
</div>

0 commit comments

Comments
 (0)