@@ -40,7 +40,7 @@ fn main ()
40
40
{ struct Foo { a: u8, b: String, }
41
41
match 4 {2=>{},_=>{}} }` ;
42
42
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!"); }' ;
44
44
45
45
const TEST_EXAMPLE = `#[test]
46
46
fn test_something() {
@@ -104,6 +104,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
104
104
from < a href = { CRATES_IO_URL } > crates.io</ a > , the crates from
105
105
the < a href = { RUST_COOKBOOK_URL } > Rust Cookbook</ a > , and all
106
106
of their dependencies. To use a crate, add the appropriate
107
+ { ' ' }
107
108
< Code > extern crate foo</ Code > line to the code.
108
109
</ p >
109
110
@@ -118,9 +119,9 @@ const Help = ({ navigateToIndex }: HelpProps) => (
118
119
< LinkableSection id = "features-linting" header = "Linting code" level = { H3 } >
119
120
< p >
120
121
< 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 >
122
123
{ ' ' }
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
124
125
code.
125
126
</ p >
126
127
@@ -130,9 +131,9 @@ const Help = ({ navigateToIndex }: HelpProps) => (
130
131
< LinkableSection id = "features-formatting" header = "Formatting code" level = { H3 } >
131
132
< p >
132
133
< 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 >
134
135
{ ' ' }
135
- < strong > Format </ strong > button to automatically reformat your code.
136
+ button in the < strong > Tools </ strong > menu to automatically reformat your code.
136
137
</ p >
137
138
138
139
< Example code = { RUSTFMT_EXAMPLE } />
@@ -142,9 +143,10 @@ const Help = ({ navigateToIndex }: HelpProps) => (
142
143
< p >
143
144
Once you have some code worth saving or sharing, click on the
144
145
{ ' ' }
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.
148
150
</ p >
149
151
</ LinkableSection >
150
152
@@ -183,12 +185,12 @@ const Help = ({ navigateToIndex }: HelpProps) => (
183
185
184
186
< LinkableSection id = "features-output-formats" header = "Output formats" level = { H3 } >
185
187
< 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
189
191
{ ' ' }
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.
192
194
</ p >
193
195
194
196
< Example code = { OUTPUT_EXAMPLE } />
@@ -204,7 +206,8 @@ const Help = ({ navigateToIndex }: HelpProps) => (
204
206
205
207
< p >
206
208
You can choose which mode to compile in using the < strong > Mode</ strong >
207
- selector.
209
+ { ' ' }
210
+ menu.
208
211
</ p >
209
212
</ LinkableSection >
210
213
@@ -219,7 +222,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
219
222
< p >
220
223
You can choose which channel to compile with using the
221
224
{ ' ' }
222
- < strong > Channel</ strong > selector .
225
+ < strong > Channel</ strong > menu .
223
226
</ p >
224
227
</ LinkableSection >
225
228
@@ -237,7 +240,7 @@ const Help = ({ navigateToIndex }: HelpProps) => (
237
240
</ p >
238
241
239
242
< p >
240
- These options can be configured via < strong > Config</ strong > .
243
+ These options can be configured via the < strong > Config</ strong > menu .
241
244
</ p >
242
245
</ LinkableSection >
243
246
@@ -301,15 +304,15 @@ const H3: React.SFC = ({ children }) => <h3>{children}</h3>;
301
304
const LinkableSection : React . SFC < LinkableSectionProps > = ( {
302
305
id, header, level : Level , children,
303
306
} ) => (
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
+ ) ;
313
316
314
317
interface LinkableSectionProps {
315
318
id : string ;
@@ -318,7 +321,7 @@ interface LinkableSectionProps {
318
321
}
319
322
320
323
const Code : React . SFC = ( { children } ) => (
321
- < code className = "help__code" > { children } </ code >
324
+ < code className = "help__code" > { children } </ code >
322
325
) ;
323
326
324
327
const mapStateToProps = ( ) => ( {
0 commit comments