Skip to content

Commit 001bf50

Browse files
committed
Update help text to reflect new UI
1 parent e5d6d00 commit 001bf50

File tree

1 file changed

+29
-26
lines changed

1 file changed

+29
-26
lines changed

ui/frontend/Help.tsx

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main ()
4040
{ struct Foo { a: u8, b: String, }
4141
match 4 {2=>{},_=>{}} }`;
4242

43-
const LINK_EXAMPLE = 'http://play.integer32.com/?code=fn main() { println!("hello world!"); }';
43+
const LINK_EXAMPLE = 'https://play.integer32.com/?code=fn main() { println!("hello world!"); }';
4444

4545
const TEST_EXAMPLE = `#[test]
4646
fn test_something() {
@@ -104,6 +104,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
104104
from <a href={CRATES_IO_URL}>crates.io</a>, the crates from
105105
the <a href={RUST_COOKBOOK_URL}>Rust Cookbook</a>, and all
106106
of their dependencies. To use a crate, add the appropriate
107+
{' '}
107108
<Code>extern crate foo</Code> line to the code.
108109
</p>
109110

@@ -118,9 +119,9 @@ const Help = ({ navigateToIndex }: HelpProps) => (
118119
<LinkableSection id="features-linting" header="Linting code" level={H3}>
119120
<p>
120121
<a href={CLIPPY_URL}>Clippy</a> is a collection of lints to catch common
121-
mistakes and improve your Rust code. Click on the
122+
mistakes and improve your Rust code. Click on the <strong>Clippy</strong>
122123
{' '}
123-
<strong>Clippy</strong> button to see possible improvements to your
124+
button in the <strong>Tools</strong> menu to see possible improvements to your
124125
code.
125126
</p>
126127

@@ -130,9 +131,9 @@ const Help = ({ navigateToIndex }: HelpProps) => (
130131
<LinkableSection id="features-formatting" header="Formatting code" level={H3}>
131132
<p>
132133
<a href={RUSTFMT_URL}>rustfmt</a> is a tool for formatting Rust code
133-
according to the Rust style guidelines. Click on the
134+
according to the Rust style guidelines. Click on the <strong>Format</strong>
134135
{' '}
135-
<strong>Format</strong> button to automatically reformat your code.
136+
button in the <strong>Tools</strong> menu to automatically reformat your code.
136137
</p>
137138

138139
<Example code={RUSTFMT_EXAMPLE} />
@@ -142,9 +143,10 @@ const Help = ({ navigateToIndex }: HelpProps) => (
142143
<p>
143144
Once you have some code worth saving or sharing, click on the
144145
{' '}
145-
<strong>Share</strong> button. This will create an anonymous <a
146-
href={GIST_URL}>GitHub Gist</a>. You will also be provided with a URL
147-
to load that Gist back into the playground.
146+
<strong>Share</strong> button. This will create a
147+
{' '}
148+
<a href={GIST_URL}>GitHub Gist</a>. You will also be provided with
149+
a URL to load that Gist back into the playground.
148150
</p>
149151
</LinkableSection>
150152

@@ -183,12 +185,12 @@ const Help = ({ navigateToIndex }: HelpProps) => (
183185

184186
<LinkableSection id="features-output-formats" header="Output formats" level={H3}>
185187
<p>
186-
Instead of compiling to a final binary, you can also see intermediate
187-
output of the compiler as LLVM IR, x86_64 assembly, or Rust MIR. This
188-
is often used in conjunction with the <a href="#features-modes">mode</a>
188+
Instead of executing the code, you can also see intermediate
189+
output of the compiler as x86_64 assembly, LLVM IR, Rust MIR, or
190+
WebAssembly. This is often used in conjunction with the
189191
{' '}
190-
selector set to "Release" to see how the compiler has chosen to optimize
191-
some specific piece of code.
192+
<a href="#features-modes">mode</a> set to "Release" to see how the
193+
compiler has chosen to optimize some specific piece of code.
192194
</p>
193195

194196
<Example code={OUTPUT_EXAMPLE} />
@@ -204,7 +206,8 @@ const Help = ({ navigateToIndex }: HelpProps) => (
204206

205207
<p>
206208
You can choose which mode to compile in using the <strong>Mode</strong>
207-
selector.
209+
{' '}
210+
menu.
208211
</p>
209212
</LinkableSection>
210213

@@ -219,7 +222,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
219222
<p>
220223
You can choose which channel to compile with using the
221224
{' '}
222-
<strong>Channel</strong> selector.
225+
<strong>Channel</strong> menu.
223226
</p>
224227
</LinkableSection>
225228

@@ -237,7 +240,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
237240
</p>
238241

239242
<p>
240-
These options can be configured via <strong>Config</strong>.
243+
These options can be configured via the <strong>Config</strong> menu.
241244
</p>
242245
</LinkableSection>
243246

@@ -301,15 +304,15 @@ const H3: React.SFC = ({ children }) => <h3>{children}</h3>;
301304
const LinkableSection: React.SFC<LinkableSectionProps> = ({
302305
id, header, level: Level, children,
303306
}) => (
304-
<div id={id}>
305-
<Level>
306-
<span className="help__header">
307-
<a className="help__header-link" href={`#${id}`}>{header}</a>
308-
</span>
309-
</Level>
310-
{children}
311-
</div>
312-
);
307+
<div id={id}>
308+
<Level>
309+
<span className="help__header">
310+
<a className="help__header-link" href={`#${id}`}>{header}</a>
311+
</span>
312+
</Level>
313+
{children}
314+
</div>
315+
);
313316

314317
interface LinkableSectionProps {
315318
id: string;
@@ -318,7 +321,7 @@ interface LinkableSectionProps {
318321
}
319322

320323
const Code: React.SFC = ({ children }) => (
321-
<code className="help__code">{children}</code>
324+
<code className="help__code">{children}</code>
322325
);
323326

324327
const mapStateToProps = () => ({

0 commit comments

Comments
 (0)