Skip to content

Commit d5a1557

Browse files
authored
Merge pull request #100 from brauliobz/section_the_sections
Divide items and expressions into sections
2 parents b5aeaa2 + ae361e1 commit d5a1557

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

src/behavior-considered-undefined.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ to let `safe` code exhibit these behaviors.
3939
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
4040
[`UnsafeCell<U>`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
4141
[`read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
42-
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
42+
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html

src/crates-and-source-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn main() {
9696
ECMA-335 CLI model, a *library* in the SML/NJ Compilation Manager, a *unit*
9797
in the Owens and Flatt module system, or a *configuration* in Mesa.
9898

99-
[module]: items.html#modules
99+
[module]: items/modules.html
100100
[module path]: paths.html
101101
[attributes]: items-and-attributes.html
102102
[unit]: types.html#tuple-types

src/dynamically-sized-types.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Notably: [variables], function parameters, [const] and [static] items must be
2424
`Sized`.
2525

2626
[sized]: the-sized-trait.html
27-
[Slices]: #array-and-slice-types
28-
[trait objects]: #trait-objects
29-
[Pointer types]: #pointer-types
27+
[Slices]: types.html#array-and-slice-types
28+
[trait objects]: types.html#trait-objects
29+
[Pointer types]: types.html#pointer-types
3030
[variables]: variables.html
31-
[const]: items.html#constant-items
32-
[static]: items.html#static-items
31+
[const]: items/constant-items.html
32+
[static]: items/static-items.html

0 commit comments

Comments
 (0)