summary refs log tree commit diff
path: root/src/doc/trpl/patterns.md
AgeCommit message (Collapse)AuthorLines
2015-08-01Fix "Ignoring variants" in "Patterns" chapterJan Likar-41/+38
- Fix #26968 by noting the difference between ".." and "_" more explicitly - Change one of the examples to show the match-all behaviour of ".." - Merge "Ignoring variants" and "Ignoring bindings" sections into the latter
2015-07-06Document _ in bindingsSteve Klabnik-0/+32
Fixes #25786
2015-06-13Auto merge of #26108 - Marwes:field_pun_docs, r=steveklabnikbors-3/+18
Adds a mention for the short form pattern syntax. Now without creating a PR to my own fork! #25779
2015-06-12Mention the short form pattern syntax in the bookMarkus Westerlind-3/+18
Explains short form pattern syntax and then introduces the longer pattern matching as a rebinding of the fields instead. #25779
2015-06-09Explain interaction with if and | in patternsSteve Klabnik-0/+25
Fixes #26012
2015-05-14trpl: punctuation fix in PatternsAlex Burka-2/+2
2015-05-02Revise @ in patterns sectionSteve Klabnik-3/+31
Fixes #25008
2015-04-20TRPL editing: patternsSteve Klabnik-4/+36
Partially addresses #24388
2015-04-10copyedits: patternsSteve Klabnik-51/+47
This also puts slice patterns in nightly docs, where they belong.
2015-03-27Feature gate *all* slice patterns. #23121Brian Anderson-0/+1
Until some backwards-compatibility hazards are fixed in #23121, these need to be unstable. [breaking-change]
2015-02-18Replace all uses of `&foo[]` with `&foo[..]` en masse.Niko Matsakis-1/+1
2015-01-30Test fixes and rebase conflictsAlex Crichton-1/+1
Also some tidying up of a bunch of crate attributes
2015-01-30Don't use as_slice() in docsSteve Klabnik-2/+2
Use deref coercions instead.
2015-01-17doc: Remove extra whitespace in the middle of lines to provide alignmentNick Howell-2/+2
"Idiomatic code should not use extra whitespace in the middle of a line to provide alignment." http://aturon.github.io/style/whitespace.html I realize the linked page still needs an RFC, but the docs should be written in accordance with the guidelines nevertheless.
2015-01-17Intpocalypse, book edition.Steve Klabnik-24/+24
Fix all usage of int/uint/i/u in the book.
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-2/+2
This commit is an attempt to standardize the use of punctuation and formatting in "The Rust Programming Language" as discussed in #19823. - Convert bold text to italicized textcwhen referring to terminology. - Convert single-quoted text to italicized or double-quoted text, depending on context. - Use double quotes only in the case of scare quotes or quotations.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-0/+199