Manish Goregaokar
04abc05094
Rollup merge of #25932 - bluss:doc-book-1, r=alexcrichton
...
trpl: Fix typo in Raw Pointers chapter
2015-06-02 11:14:08 +05:30
Manish Goregaokar
7da2228861
Rollup merge of #25751 - steveklabnik:translations, r=brson
...
/cc @kgv, @rust-kr, @KaiserY, @mkpankov
2015-06-02 11:14:07 +05:30
Tshepang Lekhonkhobe
09c6203ad6
booK: Float no longer exists
2015-06-02 06:22:01 +02:00
Tshepang Lekhonkhobe
dc99fdbd66
book: update error message
2015-06-02 06:22:01 +02:00
Tshepang Lekhonkhobe
37dd7a2494
book: some tiny improvements
2015-06-02 06:21:50 +02:00
Steve Klabnik
321c2f4f8c
Add community translations.
2015-06-01 15:57:44 -04:00
Mathieu David
c4f42a1ab4
Added # let lines = "hello\nworld".lines(); to pass the tests
2015-06-01 21:34:31 +02:00
Paul Oliver
5fefae684a
trpl: Use infinite iterator in chain example with take
2015-06-01 12:44:50 +02:00
bors
baf508ba20
Auto merge of #25924 - FuGangqiang:master, r=Gankro
2015-06-01 04:57:00 +00:00
bors
02e4c4b8c8
Auto merge of #25911 - olombard:borrowing-link, r=alexcrichton
...
r? @steveklabnik
2015-05-31 21:40:47 +00:00
Mathieu David
90057c2962
output code language to text
2015-05-31 23:37:22 +02:00
Ulrik Sverdrup
6cb061721c
trpl: Fix typo in Raw Pointers chapter
2015-05-31 22:35:59 +02:00
Mathieu David
151c3d3644
Corrected some formatting issues
2015-05-31 20:56:35 +02:00
Steve Gury
bef936111d
Update iterators.md
...
Fix the actual off by one
2015-05-31 10:24:30 -07:00
Steve Gury
4425422bdd
Fix off by one in the iterator documentation
...
`(1..100).map(|x| x + 1)` is actually mapping [1,100) to [2,101)
2015-05-31 07:32:21 -07:00
Mathieu David
6e2f18ef32
Add loopcounter section to the for-loop chapter
...
Sometimes loop counters are useful and we should show new users how it is achieved in Rust.
2015-05-31 14:03:57 +02:00
FuGangqiang
bdef7faaba
trpl:add missing comma
2015-05-31 18:16:58 +08:00
olombard
61207046de
TRPL: Fix a broken link to 'borrowing'
2015-05-30 23:43:23 +02:00
bors
78c4d53871
Auto merge of #25882 - steveklabnik:gh25554, r=alexcrichton
...
Fixes #25554
2015-05-30 21:10:07 +00:00
frankamp
ee4b58c792
Fixes consistency in before/after example
...
The doc indicates that you can replace 'before' with 'after' showing the use of try!. The two examples should be equivalent, but they are not.
In the File::create we were inducing a panic before in case of error, not propagating. It is important for newbies (like myself) to understand that try! propagates failures, while unwrap can induce a panic.
The other alternative is to make the 'before' File::create also manually handle Err like the other calls. Either way it would be consistent.
2015-05-30 13:31:46 -07:00
Lorenz
babb2684d8
Extend rust reference with a section about type coercions
2015-05-30 14:26:50 +02:00
Lorenz
a2b61e16b1
Extend rust reference with a section about subtyping
2015-05-30 14:25:58 +02:00
Mathieu David
5d8e085369
Proposal to explain the copy trait more clearly
...
As mentioned in #25893 the copy trait is not very well explained for beginners. There is no clear mention that all primitive types implement the copy trait and there are not a lot of examples.
With this change I try to make it more visible and understandable for new users.
I myself have struggled with this, see [my question on stackoverflow](http://stackoverflow.com/questions/30540419/why-are-booleans-copyable-even-though-the-documentation-doesnt-indicate-that ). And I want to make it more transparent for others.
I filed issue #25893 but I thought that I could give it a shot myself to relieve some of the work from the devs :)
If it is not well written or there are some changes to be made before it can be merged, let me know.
Cheers,
Mathieu
2015-05-30 11:51:25 +02:00
Steve Klabnik
ed19a6e034
Rollup merge of #25886 - nhowell:patch-1, r=steveklabnik
...
r? @steveklabnik
2015-05-29 15:24:47 -04:00
Steve Klabnik
253fb5bd8b
Rollup merge of #25883 - steveklabnik:gh25417, r=alexcrichton
...
Fixes #25417
2015-05-29 15:24:47 -04:00
Steve Klabnik
c2a5d31f30
Rollup merge of #25866 - jooert:update_guidelines, r=steveklabnik
...
So that rust-guidelines can be deleted and src/doc/style can prosper as the official home of the rust guidelines. 😃
2015-05-29 15:24:47 -04:00
Steve Klabnik
c7b1f37c59
Rollup merge of #25865 - azerupi:patch-2, r=alexcrichton
...
"workd" corrected to "world"
2015-05-29 15:24:46 -04:00
Steve Klabnik
5d2af1c724
Rollup merge of #25864 - azerupi:patch-1, r=alexcrichton
...
There was no opening parenthesis for this closing parenthesis...
2015-05-29 15:24:46 -04:00
Steve Klabnik
e9e2a11a6a
Rollup merge of #25788 - maxjacobson:add-missing-space-to-glossary, r=steveklabnik
...
r? @steveklabnik
2015-05-29 15:24:46 -04:00
Nick Howell
81a413bb01
trpl: eight sections, not seven
2015-05-29 14:29:35 -04:00
Steve Klabnik
5e941877fe
Add syntax for multiple lifetimes
...
Fixes #25417
2015-05-29 12:52:02 -04:00
Steve Klabnik
b218470b4d
Make note about $ more prominent.
...
Fixes #25554
2015-05-29 12:20:32 -04:00
bors
2d447e40e2
Auto merge of #25857 - killercup:patch-14, r=steveklabnik
...
Thanks to @cers who reported this in killercup/trpl-ebook#14 !
r? @steveklabnik
2015-05-29 14:53:59 +00:00
bors
3a433b968b
Auto merge of #25854 - liigo:patch-1, r=alexcrichton
2015-05-29 11:46:08 +00:00
Nils Liberg
adac861db2
Fix link to newtypes page
2015-05-29 01:02:24 +02:00
Nils Liberg
d0744ba3e7
Fix mistake: "to to" -> "to"
2015-05-29 01:02:24 +02:00
David Campbell
31a007af19
remove extra space from "over" code as well
2015-05-29 01:02:24 +02:00
David Campbell
4d90b4d9b8
Update let.md -- follow whitespace style guideline
...
"Idiomatic code should not use extra whitespace in the middle of a line to provide alignment."
2015-05-29 01:02:24 +02:00
Corey Farwell
06706510cb
Make adjancent code examples more similar
2015-05-29 01:02:24 +02:00
David Campbell
19cb2a7707
add newline before list in functions-and-methods
...
The current version of hoedown treats lists interrupting paragraphs in the Markdown.pl style rather than CommonMark, so a newline is needed for the list to be rendered properly.
2015-05-29 01:02:24 +02:00
Mathieu David
15aeea5477
Corrected typo
...
"workd" corrected to "world"
2015-05-29 00:43:39 +02:00
Mathieu David
15ab481322
removed lonely closing parenthesis
...
There was no opening parenthesis for this closing parenthesis...
2015-05-28 23:47:27 +02:00
bors
621a10e7f3
Auto merge of #25829 - steveklabnik:ioresult_fixes, r=alexcrichton
...
This is now std::io::Result
2015-05-28 17:34:30 +00:00
Steve Klabnik
16a47c2d91
remove references to IoResult
...
This is now std::io::Result
2015-05-28 12:51:01 -04:00
bors
9c303944a7
Auto merge of #25835 - steveklabnik:gh25438, r=alexcrichton
...
Fixes #25438
2015-05-28 15:29:15 +00:00
Pascal Hertleif
2a63cc7715
TRPL: Fix Unescaped URL
2015-05-28 16:18:26 +02:00
bors
4233cbda8a
Auto merge of #25849 - reinh:patch-1, r=huonw
...
Thanks for the awesome book!
r? @steveklabnik
2015-05-28 11:24:38 +00:00
Liigo Zhuang
d061a0f8d5
floating-point types are machine types, not machine-dependent types
2015-05-28 18:11:32 +08:00
bors
4f66d881a5
Auto merge of #25843 - shepmaster:remove-public-int-and-uint, r=huonw
2015-05-28 09:20:49 +00:00
Rein Henrichs
23ec00751e
TRPL: fix typo, borow for borrow
2015-05-27 22:35:46 -07:00