summary refs log tree commit diff
path: root/src/doc/book/structs.md
AgeCommit message (Collapse)AuthorLines
2016-11-13Improved punctuation, capitalization, and sentence structure of code snippet ↵Angelo Polo-5/+5
comments
2016-11-03Add error note to illegal code snippetAngelo Polo-1/+1
2016-07-05show both forms of empty struct declarationAlex Burka-1/+4
2016-04-28add link to match sectionAlex Burka-0/+5
2016-04-28s/than/instead of/Alex Burka-2/+2
2016-04-28"equal" -> "same type"Alex Burka-2/+2
2016-04-28fix Point destructuring exampleAlex Burka-1/+1
2016-04-27update documentation of tuple/unit structsAlex Burka-22/+41
I made the "tuple structs are useless" editorializing a bit weaker and moved it to the end. Feel free to overrule me on that. I also added an example of how to unpack a tuple struct with dot notation, because it came up on IRC. `braced_empty_structs` is stable now, so I updated the example for unit-like structs to use that syntax. Should we show both ways? cc @ubsan r? @steveklabnik or @GuillameGomez
2016-01-09Remove many instances of 'just'Steve Klabnik-2/+2
Doing so is considered weaker writing. Thanks @Charlotteis! Fixes #28810
2016-01-04Mention that structs can contain &mut TsSteve Klabnik-0/+29
Fixes #30254
2015-12-09Fixes from reviewXmasreturns-2/+2
Traits -> Field labels Revert a change to convention
2015-12-09Grammar and slight ordering changesXmasreturns-25/+23
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-0/+202
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.