about summary refs log tree commit diff
path: root/src/libstd/keyword_docs.rs
AgeCommit message (Collapse)AuthorLines
2020-02-13keyword docs for else and inkeyword docs for else and in.Giles Cope-5/+56
2020-02-12Rollup merge of #67695 - gilescope:truth, r=centrilYuki Okushi-5/+44
Added dyn and true keyword docs r? @Centril
2020-02-11Keyword docsGiles Cope-5/+44
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Tim Robinson <tim.g.robinson@gmail.com> Co-Authored-By: Peter Todd <pete@petertodd.org> Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2019-12-29Some keyword documentation.Giles Cope-4/+23
2019-12-22Format the worldMark Rousskov-39/+39
2019-12-08Rollup merge of #66325 - BartMassey:master, r=joshtriplettMazdak Farrokhzad-2/+2
Change unused_labels from allow to warn Fixes #66324, making the unused_labels lint warn instead of allow by default. I'm told @rust-lang/lang will need to review this, and perhaps will want to do a crater run.
2019-12-01add grammer fixesDevin R-2/+2
2019-11-30add ";" for let = matchDevin R-1/+1
2019-11-30fix doc compile failDevin R-4/+5
2019-11-30remove trailing whitespaceDevin R-15/+15
2019-11-30add docs for move and match keywordsDevin R-2/+5
2019-11-30add example to moveDevin R-1/+4
2019-11-30document match and move keywordsDevin R-5/+64
2019-11-16add missing 'static lifetime in docsMagnus Ulimoen-1/+1
The example refers to a static lifetime parameter that can be elided. This parameter is not included, meaning lifetime elision is not shown.
2019-11-15Cleaned up unused labelsBart Massey-2/+2
Deleted unused labels from compiler and fixed or allowed unused labels in tests. This patch removes some gratuitous unused labels and turns off the warning for unused labels that are a necessary part of tests. This will permit setting the `unused_labels` lint to `warn`.
2019-10-24Adding doc on keyword continueYves Dorfsman-2/+33
2019-10-18reworded loop value sentenceYves Dorfsman-2/+3
2019-10-18Added doc on keyword breakYves Dorfsman-2/+64
2019-08-30Rollup merge of #62957 - dns2utf8:doc_loop_keyword, r=GuillaumeGomezMazdak Farrokhzad-3/+4
Match the loop examples The idea is to show the usefulness of the expression side by side.
2019-08-20Stabilize 'async_await'.Mazdak Farrokhzad-2/+0
2019-08-06Match the loop examplesStefan Schindler-3/+4
2019-07-11document that crate refers to the project rootNathan Goldbaum-1/+5
2019-07-07Document `while` keywordYuki Okushi-9/+56
2019-05-16Add all keywords to keyword docsDylan MacKenzie-15/+279
This commit gives each stable keyword a short entry in the "Keywords" section in the docs for `std`. The newly added entries are a single summary line and a note that the documentation is not yet complete. I changed some of the existing summary lines for consistency's sake. Each line is either a verb phrase ("name the type of a trait object" for `dyn`), or an object ("A value of type `bool` representing logical true" for `true`). I tried to avoid using the keyword itself or the word "keyword" in the summary. Later PRs can flesh out each keyword with an example of each context in which a keyword can appear and a link to the rust book. Keywords which are not close to stable rust such as `box` (which is getting unstabilized) or `try` are ignored in this PR.
2019-04-09Fix links on keyword docs.Eric Huss-30/+25
- Make links relative. - Adjust links from old 2018-edition book. - Fix broken link in `let` docs.
2019-03-27Move link to rust book to next line to pass 100 column limitChris Gregory-1/+2
2019-03-27Add higher-ranked trait bounds linkChris Gregory-0/+1
2019-03-27Make into itemized list and fix some wordingChris Gregory-7/+10
2019-03-27Add documentation about `for` used as higher ranked trait boundsChris Gregory-5/+7
Resolves #55416
2019-02-10libs: doc commentsAlexander Regueiro-2/+2
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2019-01-05Rollup merge of #57312 - Mendess2526:master, r=Centrilkennytm-2/+2
`const fn` is no longer coming soon (const keyword docs) The `const` keyword [documentation](https://doc.rust-lang.org/std/keyword.const.html) mentions that `const fn`s are coming soon, but they have already been added.
2019-01-03const fn no longer comming soon on const docsMendess2526-2/+2
2019-01-01Fix broken links to second edition TRPL.Corey Farwell-4/+4
Fixes https://github.com/rust-lang/rust/issues/57104.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-04cleanup: remove static lifetimes from consts in libstdljedrz-1/+1
2018-11-13fix various typos in doc commentsAndy Russell-1/+1
2018-10-23Hopefully fix compile erroriirelu-1/+0
This was added in the fortnight this PR spent stale. I'm hoping this one-liner fixes it.
2018-09-26Remove the last broken link.iirelu-2/+1
Dangit. I really thought I got them all.
2018-09-26Incorporate criticisms into keyword docsiirelu-8/+13
Thanks to @Centril for these.
2018-09-26Removed dead links to unwritten keyword docsiirelu-20/+7
Most of these will eventually be filled, but right now travis-ci enjoys complaining about the fact that there's links that lead nowhere, so they're gone. Hopefully someone remembers to re-add them later.
2018-09-24Add keyword docs for `loop`.iirelu-0/+45
2018-09-19Rework `let` keyword docsiirelu-14/+48
It didn't strictly need to be reworked and I'm not sure my version is better, but oh well, I'm doing it for consistency.
2018-09-19Document impl keywordiirelu-5/+71
This commit also splits out linky-line-thingies into two lines, which judging from the source code for tidy, should be enough to make it shut up and accept me for who I am, dammit.
2018-09-14Incorporate keyword doc PR critiqueiirelu-31/+36
2018-09-12Document `if` keyword.iirelu-0/+78
2018-09-10Document `for` keywordiirelu-0/+71
2018-09-09Expand fn keyword docsiirelu-7/+59
2018-09-09Add docs on `extern` keywordiirelu-0/+42