Skip to content

Commit

Permalink
Divide items and expressions into sections
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
brauliobz committed Oct 2, 2017
1 parent b5aeaa2 commit ae361e1
Show file tree
Hide file tree
Showing 44 changed files with 2,673 additions and 2,639 deletions.
30 changes: 30 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,42 @@

- [Items and attributes](items-and-attributes.md)
- [Items](items.md)
- [Modules](items/modules.md)
- [Extern crates](items/extern-crates.md)
- [Use declarations](items/use-declarations.md)
- [Functions](items/functions.md)
- [Type aliases](items/type-aliases.md)
- [Structs](items/structs.md)
- [Enumerations](items/enumerations.md)
- [Unions](items/unions.md)
- [Constant items](items/constant-items.md)
- [Static items](items/static-items.md)
- [Traits](items/traits.md)
- [Implementations](items/implementations.md)
- [External blocks](items/external-blocks.md)
- [Visibility and Privacy](visibility-and-privacy.md)
- [Attributes](attributes.md)

- [Statements and expressions](statements-and-expressions.md)
- [Statements](statements.md)
- [Expressions](expressions.md)
- [Literal expressions](expressions/literal-expr.md)
- [Path expressions](expressions/path-expr.md)
- [Block expressions](expressions/block-expr.md)
- [Operator expressions](expressions/operator-expr.md)
- [Array and index expressions](expressions/array-expr.md)
- [Tuple and index expressions](expressions/tuple-expr.md)
- [Struct expressions](expressions/struct-expr.md)
- [Enum variant expressions](expressions/enum-variant-expr.md)
- [Call expressions](expressions/call-expr.md)
- [Method call expressions](expressions/method-call-expr.md)
- [Field access expressions](expressions/field-expr.md)
- [Closure expressions](expressions/closure-expr.md)
- [Loop expressions](expressions/loop-expr.md)
- [Range expressions](expressions/range-expr.md)
- [If and if let expressions](expressions/if-expr.md)
- [Match expressions](expressions/match-expr.md)
- [Return expressions](expressions/return-expr.md)

- [Type system](type-system.md)
- [Types](types.md)
Expand Down
4 changes: 2 additions & 2 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ On an `extern` block, the following attributes are interpreted:
- `link` - indicate that a native library should be linked to for the
declarations in this block to be linked correctly. `link` supports an optional
`kind` key with three possible values: `dylib`, `static`, and `framework`. See
[external blocks](items.html#external-blocks) for more about external blocks. Two
examples: `#[link(name = "readline")]` and
[external blocks](items/external-blocks.html) for more about external blocks.
Two examples: `#[link(name = "readline")]` and
`#[link(name = "CoreFoundation", kind = "framework")]`.
- `linked_from` - indicates what native library this block of FFI items is
coming from. This attribute is of the form `#[linked_from = "foo"]` where
Expand Down
2 changes: 1 addition & 1 deletion src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ to let `safe` code exhibit these behaviors.
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
[`UnsafeCell<U>`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
[`read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
2 changes: 1 addition & 1 deletion src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn main() {
ECMA-335 CLI model, a *library* in the SML/NJ Compilation Manager, a *unit*
in the Owens and Flatt module system, or a *configuration* in Mesa.

[module]: items.html#modules
[module]: items/modules.html
[module path]: paths.html
[attributes]: items-and-attributes.html
[unit]: types.html#tuple-types
Expand Down
10 changes: 5 additions & 5 deletions src/dynamically-sized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Notably: [variables], function parameters, [const] and [static] items must be
`Sized`.

[sized]: the-sized-trait.html
[Slices]: #array-and-slice-types
[trait objects]: #trait-objects
[Pointer types]: #pointer-types
[Slices]: types.html#array-and-slice-types
[trait objects]: types.html#trait-objects
[Pointer types]: types.html#pointer-types
[variables]: variables.html
[const]: items.html#constant-items
[static]: items.html#static-items
[const]: items/constant-items.html
[static]: items/static-items.html
Loading

0 comments on commit ae361e1

Please sign in to comment.