Commit Graph

27 Commits

Author SHA1 Message Date
Ay355
9552f2a1fe
[rust/all] Remove .iter() on array example (#4230)
As of Rust 1.53.0, arrays implement the IntoIterator trait, making .iter() on an array unnecessary
2021-11-01 22:27:42 +01:00
polazarus
602dbf5267
Change call 2020-02-12 21:25:39 +01:00
polazarus
33921c9e6c
[Rust] Change misleading method and add two other methods
The `get_bar` method consumes `self`. The name is misleading and does not respect the language naming convention.

This PR renames it to `into_bar` and provides `bar` (a getter) and `bar_mut` (to get a mutable reference).
2020-02-12 21:18:41 +01:00
Petr Houška
e98cb424b3 [rust/en] Small stylistic fix. 2020-02-08 23:29:46 +01:00
S Stewart
5af797722e
rust: update lang name to be correct
Sorry if this annoys anyone, just feels a bit annoying to not have the language's name be capitalized :P
2019-12-25 01:00:42 -06:00
Emerentius
fdd278fde1 rust: update explanation of borrow system
With the introduction of non-lexical lifetimes, borrows no longer last
until the end of scope. This has always been active in the 2018 edition
and is now also true in the 2015 edition as of Rust 1.36
2019-09-01 11:54:40 +02:00
Emerentius
c5f6427b60 rust: improve explanation of string slices 2019-09-01 11:54:15 +02:00
Anatolij
501828c891
Add gescription related break statement
Insert description related to break statement.
2018-09-20 13:04:31 +02:00
Anatolij
cd6abe0bfc
The source code can be run by Rust Playground
The source code can be run by Rust Playground without warnings
2018-09-20 09:19:39 +02:00
Rob Wu
970aff0dad Fix comment in Rust docs: box -> mine (#2365)
The "box" is referring to the Box variable a few lines back, but that is
called "mine", not "box".
2016-09-27 16:42:40 +02:00
Geoff Liu
97df073a83 Merge pull request #2269 from carlomilanesi/master
Translation to Italian of Rust tutorial
2016-08-02 13:55:53 -04:00
ven
5977df5be4 Update rust.html.markdown 2016-06-26 21:46:57 +02:00
Kyle Mendes
5d39704b57 [rust/en] Updating comment examples (#1883) 2016-06-26 21:46:16 +02:00
Adam Heins
a7015a0f85 Minor formatting and wording change in rust doc. (#2277) 2016-06-26 15:21:27 +02:00
Carlo Milanesi
08c653ad62 Corrected definition of "slice" concept 2016-05-28 15:22:22 +02:00
Pushkar Sharma
2b8fe51af6 Mention meaning of asterisk. Explain *ref_var2
Issue #1398
2015-10-11 09:39:39 +05:30
Gabriel Halley
960ee4a185 removing whitespace all over 2015-10-07 23:11:24 -04:00
Tim Heaney
5e11d06a4f Typo: should be advice, not advise. 2015-10-05 22:19:59 -04:00
Adam Bard
119f341028 Merge pull request #1138 from jin/patch-1
Fixed typo: changing an immutable ref will not compile
2015-09-25 06:36:17 +08:00
Michael Simpson
8d22be8f85 Remove in-development from Rust's description
Now that Rust is stable at 1.0 saying "in-development" might not be appropriate any more.
2015-06-22 16:03:24 -04:00
Esption
ad344ac7c6 Rust: Change '&*' to '&' 2015-06-17 18:35:32 -05:00
Jingwen
337710e13d Fixed typo: changing an immutable ref will not compile 2015-06-13 17:27:05 +08:00
Antonio Ognio
00a246e77b Updating rust.html.markdown for Rust 1.0 2015-05-15 17:12:45 -05:00
P1start
ecc5d89841 [rust/en] Update the Rust tutorial
This adjusts the English Rust tutorial for changes to the language and
generally tweaks a few other things.

Fixes #860.
2015-01-15 15:14:25 +13:00
Justin Campbell
8768176023 Rust tutorial -> The Rust Guide
Previous link is deprecated
2014-10-14 16:42:39 -04:00
P1start
9874c063d3 add &str explanation; add section on vectors 2014-07-01 15:24:08 +12:00
P1start
83283c0d4c [rust/en] Add an English Rust tutorial
Fixes #480.
2014-06-30 16:44:08 +12:00