about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-03-02 00:06:41 -0800
committerbors <bors@rust-lang.org>2013-03-02 00:06:41 -0800
commit0917e131d57b8fb84b462dad13cadbe051f5d011 (patch)
treec41cf79fd9dca509f4c295803d66496755044f7a /src/rt/sync/rust_thread.cpp
parent3f91f32938358d65945e5214f664b8f0453d4a28 (diff)
parent332c0460290ade81edf44b55d47edcb4990a3b5a (diff)
downloadrust-0917e131d57b8fb84b462dad13cadbe051f5d011.tar.gz
rust-0917e131d57b8fb84b462dad13cadbe051f5d011.zip
auto merge of #5187 : ben0x539/rust/docs-unit-struct, r=catamorphism
This adds a few words about unit-like struct types (`struct Foo;`) in the sections for `struct` items, structure expressions and structure types (and fixes an adjacent typo or two). The added text is at the same time triply redundant because of how the sections are split and rather brief because I don't think there's that much to say about field-less structs without digressing into `impl`s and generic functions and whatnot, but it's probably better than nothing for a start.

The added arm for the grammar of struct expressions is really awkward. It's just

    | expr_path

which is clearly not unambiguously a struct expression, but it didn't feel right not to add anything to the grammar chunk (and I can't tell whether the arm for enum-like structs is somehow unambiguous with regular enum expressions, either). Is this okay?
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions