about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-01-31updating the link to rustdocmadmalik-1/+1
http://doc.rust-lang.org/rustdoc.html states that its content was moved to http://doc.rust-lang.org/book/documentation.html
2015-01-30Test fixes and rebase conflictsAlex Crichton-1/+1
Also some tidying up of a bunch of crate attributes
2015-01-30rollup merge of #21783: lukesteensen/patch-1Alex Crichton-1/+1
2015-01-30rollup merge of #21780: steveklabnik/no_as_sliceAlex Crichton-28/+8
Use auto deref instead.
2015-01-30rollup merge of #21718: alexcrichton/stabilize-from-strAlex Crichton-11/+13
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-30Fix a missed io => old_ioLuke Steensen-1/+1
2015-01-30std: Stabilize FromStr and parseAlex Crichton-11/+13
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-30Don't use as_slice() in docsSteve Klabnik-28/+8
Use deref coercions instead.
2015-01-30fix falloutJorge Aparicio-0/+4
2015-01-29s/Show/Debug/gJorge Aparicio-3/+3
2015-01-27Rollup merge of #21623 - dinfuehr:patch-1, r=alexcrichtonManish Goregaokar-2/+2
2015-01-27Rollup merge of #21618 - snowe2010:documentation, r=GankroManish Goregaokar-0/+1
Lifetime elision with two input references is not clear. Closes #21284
2015-01-26Fallout of io => old_ioAlex Crichton-38/+38
2015-01-25more-strings.md: repaired links to APIDominik Inführ-2/+2
2015-01-25Add example for Lifetime Elision with two inputsTyler Thrailkill-0/+1
Lifetime elision with two input references is not clear. Closes #21284
2015-01-25docs: add wildcard syntax in `use` for modulesGarrett Heel-0/+4
2015-01-24Rollup merge of #21560 - steveklabnik:remove_discuss_link, r=sanxiynFlavio Percoco Premoli-3/+2
We've had some new people post questions to Discuss, so this should be removed for now. http://discuss.rust-lang.org/t/did-you-mean-to-point-to-discuss-rust-lang-org-as-a-user-forum/1381
2015-01-24Rollup merge of #21108 - steveklabnik:gh16969, r=alexcrichtonFlavio Percoco Premoli-2/+112
Fixes #16969
2015-01-23remove discuss link from the bookSteve Klabnik-3/+2
2015-01-23Soup up 'method syntax' chapter of the BookSteve Klabnik-2/+112
Fixes #16969
2015-01-22Rollup merge of #21517 - SeanTAllen:master, r=steveklabnikSteve Klabnik-8/+8
Lifetime elision documentation was reference a previously existing function that doesn't exist. After talking with Steve Klabnik, I confirmed the correct function to be referenced and updated documentation accordingly.
2015-01-22Rollup merge of #21479 - steveklabnik:rustdoc_to_book, r=alexcrichtonSteve Klabnik-0/+297
Fixes #21430
2015-01-22Rollup merge of #21450 - alfie:book2, r=steveklabnikSteve Klabnik-2/+1
Compiling won't produce an executable just yet because (as stated in the next paragraph) there are errors. By removing this sentance, the reader won't get confused when they expect a successful compile i.e. if they don't read ahead one paragraph, they are going to be checking their code and wondering why it's not compiling.
2015-01-22Rollup merge of #21373 - angst7:pointer_doc_1, r=steveklabnikSteve Klabnik-4/+4
Updated incorrect error messages, and removed explicit return statements from example code.
2015-01-22Rollup merge of #21056 - steveklabnik:return_strings, r=sfacklerSteve Klabnik-0/+284
When we moved over to the book, we lost this.
2015-01-22Return the String guide to its former glory.Steve Klabnik-0/+284
When we moved over to the book, we lost this.
2015-01-22Reference correct fn during lifetime ellisionSean T Allen-8/+8
2015-01-22Auto merge of #21078 - js-ojus:master, r=steveklabnikbors-8/+35
* Include an illustration of a function that accepts two closures.
2015-01-21Move rustdoc.md into the bookSteve Klabnik-0/+297
Fixes #21430
2015-01-21rollup merge of #21258: aturon/stab-3-indexAlex Crichton-3/+3
Conflicts: src/libcore/ops.rs src/librustc_typeck/astconv.rs src/libstd/io/mem.rs src/libsyntax/parse/lexer/mod.rs
2015-01-21Fix type inference problems in tests and docsAaron Turon-3/+3
2015-01-21rollup merge of #21433: alfie/typobookAlex Crichton-1/+1
Tiny fix
2015-01-21rollup merge of #21394: japaric/nononoAlex Crichton-1/+1
r? @FlaPer87
2015-01-21rollup merge of #21393: loganchien/fix-if-stmt-doc-titleAlex Crichton-1/+1
Slightly change the title to make it look more consistent with other chapters (e.g. Match.)
2015-01-21remove `NoSendItem` and `NoSyncItem`Jorge Aparicio-1/+1
2015-01-21docs: Update for clarityAlfie John-2/+1
Compiling won't produce an executable just yet because (as stated in the next paragraph) there are errors. By removing this sentance, the reader won't get confused when they expect a successful compile i.e. if they don't read ahead one paragraph, they are going to be checking their code and wondering why it's not compiling.
2015-01-20docs: typoAlfie John-1/+1
2015-01-21Rollup merge of #21427 - steveklabnik:generics_fix, r=alexcrichtonBarosl LEE-3/+3
Multiple people have asked me if this is a reference to Hacker News, and I _certainly_ don't want to give them that impression.
2015-01-21Rollup merge of #21375 - petrochenkov:ssbsl, r=alexcrichtonBarosl LEE-1/+1
After PR #19766 added implicit coersions `*mut T -> *const T`, the explicit casts can be removed. (The number of such casts turned out to be relatively small).
2015-01-21Rollup merge of #21359 - WiSaGaN:bugfix/fix_marker, r=alexcrichtonBarosl LEE-2/+2
From std::markers to std::marker.
2015-01-21Rollup merge of #21358 - glacjay:patch-2, r=alexcrichtonBarosl LEE-0/+1
2015-01-21Rollup merge of #21357 - kimroen:patch-1, r=sanxiynBarosl LEE-3/+2
Having both "Right now" and "at the moment" in the same statement is redundant.
2015-01-21Rollup merge of #21345 - glacjay:patch-1, r=alexcrichtonBarosl LEE-1/+1
The reference should be `x`, not `FOO` itself.
2015-01-21Rollup merge of #21048 - aroben:patch-1, r=steveklabnikBarosl LEE-1/+1
Now both the enum values and the prose describing them mention the values in the same order.
2015-01-20Small fix in TRPL 3.9Steve Klabnik-3/+3
Multiple people have asked me if this is a reference to Hacker News, and I _certainly_ don't want to give them that impression.
2015-01-20Auto merge of #21257 - alexcrichton:issue-20064, r=pnkfelixbors-4/+4
These two attributes are used to change the entry point into a Rust program, but for now they're being put behind feature gates until we have a chance to think about them a little more. The #[start] attribute specifically may have its signature changed. This is a breaking change to due the usage of these attributes generating errors by default now. If your crate is using these attributes, add this to your crate root: #![feature(start)] // if you're using the #[start] attribute #![feature(main)] // if you're using the #[main] attribute cc #20064
2015-01-20Change the title of if statement in trpl book.Logan Chien-1/+1
2015-01-18quick formatting fixMatt Roche-5/+1
2015-01-18Error message fixes and removed explicit returns in example codeMatt Roche-4/+8
2015-01-18Fix std::marker.Wangshan Lu-2/+2
From std::markers to std::marker.