about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-02-15Rollup merge of #22324 - Manishearth:patch-1, r=steveklabnikManish Goregaokar-6/+6
(fixes #22317) rollupable
2015-02-15Rollup merge of #22305 - steveklabnik:gh20948, r=alexcrichtonManish Goregaokar-2/+2
Fixes #20948
2015-02-15Rollup merge of #22295 - steveklabnik:gh9980, r=alexcrichtonManish Goregaokar-4/+11
Fixes #9980
2015-02-15Rollup merge of #22280 - Unode:patch-1, r=steveklabnikManish Goregaokar-1/+1
2015-02-15Rollup merge of #22275 - steveklabnik:gh7538, r=huonwManish Goregaokar-12/+41
We use them in some places, but never actually talk about the syntax.
2015-02-15Rollup merge of #22271 - steveklabnik:gh22035, r=nikomatsakisManish Goregaokar-8/+5
Fixes #22035. (mostly by making it irrelevant)
2015-02-15Rollup merge of #22264 - fhahn:tiny-doc-fix2, r=GankroManish Goregaokar-1/+1
While having a look at the Rust book I found this tiny error. In my opinion this if should be all lowercase, because it follows a colon, but I am no native speaker, so I am probably wrong. Also it is a very tiny change, so feel free to include it in any bigger documentation patch.
2015-02-15Rollup merge of #22132 - steveklabnik:gh16645, r=alexcrichtonManish Goregaokar-1/+24
Fixes #16645 Fixing this in any deeper way will require an RFC, so let's just document the current behavior.
2015-02-15book: link to a file with configs linksElantsev Serj-1/+1
2015-02-14Minor change in 'method-syntax' chaptercaipre-2/+2
2015-02-14Documentation FixesThiago Carvalho-3/+3
crates-and-modules - replace ")" more string - improve readability of grapheme
2015-02-14Normalize range syntax used in concurrency.mdManish Goregaokar-6/+6
(fixes #22317)
2015-02-13Note that Vec<T> is heap allocated.Steve Klabnik-2/+2
Fixes #20948
2015-02-13Enhance static mut example in FFI chapter.Steve Klabnik-4/+11
Fixes #9980
2015-02-13Mention type placeholders in the book.Steve Klabnik-1/+10
Fixes #12891.
2015-02-13Reintroduce box syntax where neededSteve Klabnik-2/+7
Otherwise, this line is a lie.
2015-02-13Fix small copy-paste typoRenato Alves-1/+1
2015-02-13Add diverging functions to the book.Steve Klabnik-12/+41
We use them in some places, but never actually talk about the syntax.
2015-02-13Re-word paragraph about enums and equalitySteve Klabnik-8/+5
Fixes #22035.
2015-02-13Make note of doc duplication with reexportsSteve Klabnik-1/+24
Fixes #16645
2015-02-13Make if after colon lowercaseFlorian Hahn-1/+1
2015-02-12Update uninstall instructionsBrian Anderson-3/+3
2015-02-12Warn when linking a plugin into a non-plugin crateKeegan McAllister-0/+10
Fixes #22202.
2015-02-12Updated usage of StrExt.parse() as per a recommendation by edwardw.Nick Sarten-23/+23
2015-02-12Fixed one newly created instance of range(start, end).Nick Sarten-1/+1
2015-02-12Updated documentation to use range notation syntax.Nick Sarten-22/+22
Replaced outdated use of the `range(start, end)` function where approriate with `start..end`, and tweaked the examples to compile and run with the latest rust. I also fixed two periphery compile issues in reference.md which were occluding whether there were any new errors created by these changes, so I fixed them.
2015-02-10rollup merge of #22120: lukesteensen/closures_guideAlex Crichton-10/+10
Based off https://github.com/rust-lang/rust/pull/21843, it looks like the syntax in the Closures guide is outdated.
2015-02-10rollup merge of #22106: steveklabnik/doc_trait_objectsAlex Crichton-45/+289
I started to write up some docs on this, and then realized I was just repeating http://huonw.github.io/blog/2015/01/peeking-inside-trait-objects/ but worse. @huonw previously said that we can use this content if we wanted, so I made some tweaks and integrated it into the book. Fixes #21707
2015-02-10rollup merge of #22007: thiagooak/masterAlex Crichton-0/+14
From #21829 clarify equivalency of tuples
2015-02-09Add documentation on trait objects.Steve Klabnik-45/+289
Largely taken from @huonw's http://huonw.github.io/blog/2015/01/peeking-inside-trait-objects/ Fixes #21707
2015-02-09remove obsolete closure syntax from the guideLuke Steensen-10/+10
2015-02-09Use a crate attribute to load pluginsKeegan McAllister-8/+7
#[plugin] #[no_link] extern crate bleh; becomes a crate attribute #![plugin(bleh)] The feature gate is still required. It's almost never correct to link a plugin into the resulting library / executable, because it will bring all of libsyntax and librustc with it. However if you really want this behavior, you can get it with a separate `extern crate` item in addition to the `plugin` attribute. Fixes #21043. Fixes #20769. [breaking-change]
2015-02-07Feature-gate #![no_std]Keegan McAllister-3/+5
Fixes #21833. [breaking-change]
2015-02-07Don't use std:: paths in syntax extensions when compiling a #![no_std] crateKeegan McAllister-4/+0
Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.
2015-02-07Fix several tiny typosIngo Blechschmidt-12/+12
2015-02-06Auto merge of #21997 - Manishearth:rollup, r=alexcrichtonbors-1/+1
None
2015-02-06Note that types do not have to be declared in closuresIngo Blechschmidt-1/+2
Without such a clarification, people who know and love closures (for instance programmers with a Haskell background) might fear that types would have to be declared in closures and that therefore using closures would be much more unwieldy.
2015-02-06Auto merge of #21860 - mdinger:enum_rewording, r=steveklabnikbors-93/+90
Second try to address https://github.com/rust-lang/rust/issues/21196 . A lot that was removed at the end basically seemed repetitive showing simple variations on the same type. It seems more effective to just show more variants at the beginning instead. If you want to pack values into an example, better to use `i32` or some digit than `String` because you don't need the `to_string()` method. I didn't mention `derive` because: * I can't explain it (only use it) * I don't have a link to a good description (maybe rustbyexample but you probably want links internal) * Giving more detail especially stating that `==` won't work and why should help quite a bit I didn't `make test` or check links but I will if this will be merged. @steveklabnik
2015-02-06Book Compound Data Types updateThiago Carvalho-0/+14
From Issue 21829 clarify equivalency of tuples
2015-02-06Auto merge of #21962 - vrinek:printable-book, r=steveklabnikbors-59/+0
Tested on: * Safari on OSX * Firefox on OSX
2015-02-06Rollup merge of #21954 - jbcrail:fix-misspelled-comments, r=steveklabnikManish Goregaokar-1/+1
The spelling corrections were made in both documentation comments and regular comments.
2015-02-06Auto merge of #21609 - GarrettHeel:master, r=steveklabnikbors-0/+4
Now that it's no longer feature gated, add docs for wildcard syntax.
2015-02-05Remove unused src/doc/trpl/rust-book.cssKostas Karachalios-59/+0
2015-02-04Fix for misspelled comments.Joseph Crail-1/+1
The spelling corrections were made in both documentation comments and regular comments.
2015-02-04A concurrency chapter to replace the tasks chapter.Steve Klabnik-397/+392
Fixes #18936 Fixes #18938 Fixes #20038 Fixes #8395 Fixes #2080 Fixes #21194
2015-02-02rollup merge of #21865: steveklabnik/gh21501Alex Crichton-4/+2
Fixes #21501 r? @huonw
2015-02-02rollup merge of #21852: FreeFull/patch-1Alex Crichton-1/+1
Misspelling fix.
2015-02-02Fix discrepencies in the testing chapterSteve Klabnik-4/+2
Fixes #21501
2015-02-02Give more detail about eq in book about enumsmdinger-93/+90
2015-02-02Closes issue #21850Filip SzczepaƄski-1/+1