about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-18452/+0
The book was located under 'src/doc/trpl' because originally, it was going to be hosted under that URL. Late in the game, before 1.0, we decided that /book was a better one, so we changed the output, but not the input. This causes confusion for no good reason. So we'll change the source directory to look like the output directory, like for every other thing in src/doc.
2015-11-17Rollup merge of #29890 - steveklabnik:gh29742, r=ManishearthSteve Klabnik-1/+2
FIxes #29742
2015-11-17Rollup merge of #29888 - steveklabnik:gh29762, r=sanxiynSteve Klabnik-0/+17
Fixes #29762
2015-11-17Clarify comment about structs and lifetimesSteve Klabnik-1/+2
FIxes #29742
2015-11-17Mention libc from crates.io in TRPL: FFISteve Klabnik-0/+17
Fixes #29762
2015-11-17Rollup merge of #29881 - jeanm:patch-1, r=ManishearthManish Goregaokar-1/+1
Change conditional perfect to past perfect.
2015-11-17Rollup merge of #29873 - steveklabnik:gh29493, r=nikomatsakisManish Goregaokar-7/+16
Fixes #29493
2015-11-17Auto merge of #29860 - steveklabnik:stackheapfixes, r=huonwbors-0/+8
Fixes #29853 Fixes #29852 While these points are true, we're not going for 100% accuracy here, this is introductory material. Changing these things would be more confusing, but it is important to note that we're presenting an abstraction here. r? @huonw
2015-11-17Fix grammarJean Maillard-1/+1
Change conditional perfect to past perfect.
2015-11-16Improve UFCS exampleSteve Klabnik-7/+16
Fixes #29493
2015-11-16Auto merge of #29805 - norcalli:patch-1, r=steveklabnikbors-3/+4
Fixes #29730
2015-11-16Reaffirm that this is an abstractionSteve Klabnik-0/+8
Fixes #29853 Fixes #29852 While these points are true, we're not going for 100% accuracy here, this is introductory material. Changing these things would be more confusing, but it is important to note that we're presenting an abstraction here.
2015-11-15Fix a typoJan Likar-1/+1
2015-11-15Improve Strings chapterJan Likar-2/+3
2015-11-15Update 'Strings' chapter of the bookJan Likar-6/+6
Fix #29823 by further explaining `&str` and pointing out the difference between `&str` and `&'static str`.
2015-11-12Update references and borrowing (Fixes #29730)Ashkan Kiani-3/+4
Fixes #29730
2015-11-12trpl: add a small section outlining doctest configurationKevin Butler-0/+12
2015-11-11Auto merge of #29726 - petrochenkov:privsan, r=alexcrichtonbors-1/+1
- Check privacy sanity in all blocks, not only function bodies - Check all fields, not only named - Check all impl items, not only methods - Check default impls - Move the sanity check in the beginning of privacy checking, so others could rely on it Technically it's a [breaking-change], but I expect no breakage because, well, it's *sane* privacy visitor, if code is broken it must be insane by definition!
2015-11-10Rollup merge of #29715 - defuz:patch-3, r=alexcrichtonSteve Klabnik-1/+1
r? @steveklabnik See #27305
2015-11-10Rollup merge of #29420 - efindlay:master, r=steveklabnikSteve Klabnik-0/+30
r? @steveklabnik
2015-11-09rustc_privacy: Fix bugs in SanePrivacyVisitorVadim Petrochenkov-1/+1
2015-11-09Doc: Fix broken link on for-loop.htmlIvan Ivaschenko-1/+1
2015-11-08doc: error-handling.md: main case analysis for searchjrburke-0/+16
2015-11-08Fixed "foo()" in try! example, r=steveklabnikEric Findlay-1/+1
2015-11-08Added foo() to rustdoc example, r=steveklabnikEric Findlay-3/+3
Fixes #29234
2015-11-07Rollup merge of #29660 - steveklabnik:gh28461, r=brsonManish Goregaokar-1/+3
Fixes #28461
2015-11-07Rollup merge of #29622 - steveklabnik:gh29621, r=bstrieManish Goregaokar-14/+21
Now that thread::sleep is a real thing, let's use it Fixes #29621 r? @bstrie
2015-11-07Rollup merge of #29617 - steveklabnik:gh29591, r=alexcrichtonManish Goregaokar-3/+23
Fixes #29591
2015-11-06Auto merge of #29582 - oli-obk:token_tree, r=sfacklerbors-2/+2
2015-11-06sleep_ms -> sleepSteve Klabnik-14/+21
Now that thread::sleep is a real thing, let's use it Fixes #29621
2015-11-06Add multi-line string literals to TRPLSteve Klabnik-3/+23
Fixes #29591
2015-11-06Make a note about "gigabyte"Steve Klabnik-1/+3
Fixes #28461
2015-11-06remove `Tt` prefix from TokenType variantsOliver Schneider-2/+2
[breaking change]
2015-11-06Opps, fix incorrect callIvan Ivaschenko-1/+1
2015-11-06Removing the hack from error handling chapter, which is does not make sense ↵Ivan Ivaschenko-5/+1
anymore.
2015-11-05Rollup merge of #29613 - steveklabnik:29506, r=alexcrichtonSteve Klabnik-49/+27
in favor of just expect() Fixes #29506
2015-11-05Rollup merge of #29611 - steveklabnik:gh25918, r=alexcrichtonSteve Klabnik-153/+3
Originally, this was my 30 minute introduction, and we eventually made it the opener to the book. But as #25918 has shown, the example I use here has some issues. The good news is that Rust makes heap allocation syntatically expensive, but the bad news is that that means showing equivalent programs from Rust and other languages is difficult. After thinking about it, I'm not sure this section is pulling its weight, and since it has problems, I'd rather just pull it than try to re-write it right now. I think the book is fine without it. FIxes #25918
2015-11-05Remove .ok().expect()Steve Klabnik-49/+27
in favor of just expect() Fixes #29506
2015-11-05Remove short intro from READMESteve Klabnik-153/+3
Originally, this was my 30 minute introduction, and we eventually made it the opener to the book. But as #25918 has shown, the example I use here has some issues. The good news is that Rust makes heap allocation syntatically expensive, but the bad news is that that means showing equivalent programs from Rust and other languages is difficult. After thinking about it, I'm not sure this section is pulling its weight, and since it has problems, I'd rather just pull it than try to re-write it right now. I think the book is fine without it. FIxes #25918
2015-11-05Rollup merge of #29571 - steveklabnik:gh29322, r=apasel422Steve Klabnik-2/+29
Fixes #29322
2015-11-05Rollup merge of #29567 - Toby-S:patch-1, r=steveklabnikSteve Klabnik-8/+5
Reword "Writing the logic" paragraph to prevent `unwrap` being confused for a macro (and other small changes to improve the flow of the paragraph). cc @steveklabnik
2015-11-05Rollup merge of #29538 - steveklabnik:ch1_edits, r=brsonSteve Klabnik-568/+605
I did some preliminary editing work with No Starch on the first chapter of the book, and here's some of the results. We're going to want to return to this later when @brson etc's new rustup work is done, so this is mostly just a first pass. But, we agreed that having separate chapters for each of this bit of intro is a bit excessive. So let's move all of this intro stuff into one chapter. I'd appreciate a careful review of this, as there was also some confusion about some things, which resulted in me taking one huge markdown file apart and splitting it back up, as well as some editor issues, so I _think_ this looks good, but double checking things matters! /cc @aturon
2015-11-05Fixes as per @brson's reviewSteve Klabnik-32/+28
2015-11-04Auto merge of #29528 - amitsaha:rust-inside-other-languages-minor, ↵bors-1/+2
r=nikomatsakis When referring to the different shared library extensions, specify the OS explicitly.
2015-11-04Mention multiple impl blocks in TRPLSteve Klabnik-2/+29
Fixes #29322
2015-11-04Merge first three chapters into one.Steve Klabnik-610/+609
Conceptually, this makes more sense as one introductory chapter.
2015-11-04Fix #29542Toby Scrace-8/+5
Reword "Writing the logic" paragraph to prevent `unwrap` being confused for a macro.
2015-11-03Make some edits as per No Starch.Steve Klabnik-271/+313
Lots of little details and things.
2015-11-03Fix #29533Toby Scrace-1/+1
This replaces usage of the (missing) `fatal!` macro with `panic!`.
2015-11-03Specify Microsoft Windows and Mac OS X explicitlyAmit Saha-1/+2
When referring to the different shared library extensions, specify the OS explicitly.