Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ fn main() {
[_utf8 byte order mark_]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
[function]: items/functions.html
[`Termination`]: ../std/process/trait.Termination.html
[where clause]: items/where-clauses.html
[where clauses]: items/generics.html#where-clauses
[trait or lifetime bounds]: trait-bounds.html
2 changes: 1 addition & 1 deletion src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Here are some examples:
### Implicit Borrows

Certain expressions will treat an expression as a place expression by implicitly
borrowing it. For example, it is possible to compare two unsized [slices] for
borrowing it. For example, it is possible to compare two unsized [slices][slice] for
equality directly, because the `==` operator implicitly borrows it's operands:

```rust
Expand Down
1 change: 1 addition & 0 deletions src/expressions/match-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@ meaning on match arms are [`cfg`], `cold`, and the [lint check attributes].
[_OuterAttribute_]: attributes.html
[`cfg`]: attributes.html#conditional-compilation
[lint check attributes]: attributes.html#lint-check-attributes
[range]: expressions/range-expr.html
1 change: 1 addition & 0 deletions src/expressions/method-call-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,4 @@ method and you'll be fine.
[disambiguating function call syntax]: expressions/call-expr.html#disambiguating-function-calls
[dereference]: expressions/operator-expr.html#the-dereference-operator
[methods]: items/associated-items.html#methods
[unsized coercion]: type-coercions.html#unsized-coercions
1 change: 1 addition & 0 deletions src/items/associated-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ fn main() {
[constants]: items/constant-items.html
[constant item]: items/constant-items.html
[functions]: items/functions.html
[function item]: types.html#function-item-types
[method call operator]: expressions/method-call-expr.html
[block]: expressions/block-expr.html
[path]: paths.html
3 changes: 3 additions & 0 deletions src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ enum ZeroVariants {}
[`mem::discriminant`]: ../std/mem/fn.discriminant.html
[numeric cast]: expressions/operator-expr.html#semantics
[`repr` attribute]: attributes.html#ffi-attributes
[default representation]: type-layout.html#the-default-representation
[primitive representation]: type-layout.html#primitive-representations
[`C` representation]: type-layout.html#the-c-representation
2 changes: 1 addition & 1 deletion src/items/static-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ All access to a static is safe, but there are a number of restrictions on
statics:

* The type must have the `Sync` trait bound to allow thread-safe access.
* Statics allow using paths to statics in the [constant-expression] used to
* Statics allow using paths to statics in the [constant expression] used to
initialize them, but statics may not refer to other statics by value, only
through a reference.
* Constants cannot refer to statics.
Expand Down
4 changes: 2 additions & 2 deletions src/items/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Object safe traits can be the base trait of a [trait object]. A trait is
## Supertraits

**Supertraits** are traits that are required to be implemented for a type to
implement a specific trait. Furthermore, anywhere a [generic] or [trait object]
implement a specific trait. Furthermore, anywhere a [generic][generics] or [trait object]
is bounded by a trait, it has access to the associated items of its supertraits.

Supertraits are declared by trait bounds on the `Self` type of a trait and
Expand Down Expand Up @@ -124,4 +124,4 @@ let nonsense = circle.radius() * circle.area();
[implementations]: items/implementations.html
[generics]: items/generics.html
[where clauses]: items/generics.html#where-clauses
[generic functions]: items/functions.html#generic-functions
[generic functions]: items/functions.html#generic-functions
2 changes: 1 addition & 1 deletion src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ a `packed` type cannot transitively contain another `align`ed type.

<div class="warning">

***Warning:*** Dereferencing an unaligned pointer is [undefined behaviour] and
***Warning:*** Dereferencing an unaligned pointer is [undefined behavior] and
it is possible to [safely create unaligned pointers to `packed` fields][27060].
Like all ways to create undefined behavior in safe Rust, this is a bug.

Expand Down
2 changes: 1 addition & 1 deletion src/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ language:
[machine types]: #machine-types
[machine-dependent integer types]: #machine-dependent-integer-types
[textual types]: #textual-types
[never-type]: #never-type
[never type]: #never-type
[Tuples]: #tuple-types
[Arrays]: #array-and-slice-types
[Slices]: #array-and-slice-types
Expand Down
1 change: 1 addition & 0 deletions src/undocumented.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ to shrink!
[`libstd` facade]: https://github.com/rust-lang/rfcs/pull/40
[Trait reform]: https://github.com/rust-lang/rfcs/pull/48
[Attributes on `match` arms]: https://github.com/rust-lang/rfcs/pull/49
[Attributes]: attributes.html
[Flexible target specification]: https://github.com/rust-lang/rfcs/pull/131
[Conditional compilation]: attributes.html#conditional-compilation
[Unambiguous function call syntax]: https://github.com/rust-lang/rfcs/pull/132
Expand Down