Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae361e1

Browse files
committedOct 2, 2017
Divide items and expressions into sections
- Links in other parts of the reference were updated - The following sections were moved inside others: * grouped expressions into operator-expr.md * while let into loop-expr.md * if let into if-expr.md * tuple indexing into tuple-expr.md
1 parent b5aeaa2 commit ae361e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2673
-2639
lines changed
 

‎src/SUMMARY.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,42 @@
2323

2424
- [Items and attributes](items-and-attributes.md)
2525
- [Items](items.md)
26+
- [Modules](items/modules.md)
27+
- [Extern crates](items/extern-crates.md)
28+
- [Use declarations](items/use-declarations.md)
29+
- [Functions](items/functions.md)
30+
- [Type aliases](items/type-aliases.md)
31+
- [Structs](items/structs.md)
32+
- [Enumerations](items/enumerations.md)
33+
- [Unions](items/unions.md)
34+
- [Constant items](items/constant-items.md)
35+
- [Static items](items/static-items.md)
36+
- [Traits](items/traits.md)
37+
- [Implementations](items/implementations.md)
38+
- [External blocks](items/external-blocks.md)
2639
- [Visibility and Privacy](visibility-and-privacy.md)
2740
- [Attributes](attributes.md)
2841

2942
- [Statements and expressions](statements-and-expressions.md)
3043
- [Statements](statements.md)
3144
- [Expressions](expressions.md)
45+
- [Literal expressions](expressions/literal-expr.md)
46+
- [Path expressions](expressions/path-expr.md)
47+
- [Block expressions](expressions/block-expr.md)
48+
- [Operator expressions](expressions/operator-expr.md)
49+
- [Array and index expressions](expressions/array-expr.md)
50+
- [Tuple and index expressions](expressions/tuple-expr.md)
51+
- [Struct expressions](expressions/struct-expr.md)
52+
- [Enum variant expressions](expressions/enum-variant-expr.md)
53+
- [Call expressions](expressions/call-expr.md)
54+
- [Method call expressions](expressions/method-call-expr.md)
55+
- [Field access expressions](expressions/field-expr.md)
56+
- [Closure expressions](expressions/closure-expr.md)
57+
- [Loop expressions](expressions/loop-expr.md)
58+
- [Range expressions](expressions/range-expr.md)
59+
- [If and if let expressions](expressions/if-expr.md)
60+
- [Match expressions](expressions/match-expr.md)
61+
- [Return expressions](expressions/return-expr.md)
3262

3363
- [Type system](type-system.md)
3464
- [Types](types.md)

‎src/attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ On an `extern` block, the following attributes are interpreted:
137137
- `link` - indicate that a native library should be linked to for the
138138
declarations in this block to be linked correctly. `link` supports an optional
139139
`kind` key with three possible values: `dylib`, `static`, and `framework`. See
140-
[external blocks](items.html#external-blocks) for more about external blocks. Two
141-
examples: `#[link(name = "readline")]` and
140+
[external blocks](items/external-blocks.html) for more about external blocks.
141+
Two examples: `#[link(name = "readline")]` and
142142
`#[link(name = "CoreFoundation", kind = "framework")]`.
143143
- `linked_from` - indicates what native library this block of FFI items is
144144
coming from. This attribute is of the form `#[linked_from = "foo"]` where

0 commit comments

Comments
 (0)
Please sign in to comment.