Skip to content

Commit e53d006

Browse files
authored
Merge pull request rust-lang#385 from ehuss/fix-links
Fix some broken links.
2 parents 7e042cd + 6798bfe commit e53d006

11 files changed

+14
-7
lines changed

src/crates-and-source-files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ fn main() {
114114
[_utf8 byte order mark_]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
115115
[function]: items/functions.html
116116
[`Termination`]: ../std/process/trait.Termination.html
117-
[where clause]: items/where-clauses.html
117+
[where clauses]: items/generics.html#where-clauses
118118
[trait or lifetime bounds]: trait-bounds.html

src/expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Here are some examples:
203203
### Implicit Borrows
204204

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

209209
```rust

src/expressions/match-expr.md

+1
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ meaning on match arms are [`cfg`], `cold`, and the [lint check attributes].
190190
[_OuterAttribute_]: attributes.html
191191
[`cfg`]: attributes.html#conditional-compilation
192192
[lint check attributes]: attributes.html#lint-check-attributes
193+
[range]: expressions/range-expr.html

src/expressions/method-call-expr.md

+1
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,4 @@ method and you'll be fine.
101101
[disambiguating function call syntax]: expressions/call-expr.html#disambiguating-function-calls
102102
[dereference]: expressions/operator-expr.html#the-dereference-operator
103103
[methods]: items/associated-items.html#methods
104+
[unsized coercion]: type-coercions.html#unsized-coercions

src/items/associated-items.md

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ fn main() {
279279
[constants]: items/constant-items.html
280280
[constant item]: items/constant-items.html
281281
[functions]: items/functions.html
282+
[function item]: types.html#function-item-types
282283
[method call operator]: expressions/method-call-expr.html
283284
[block]: expressions/block-expr.html
284285
[path]: paths.html

src/items/enumerations.md

+3
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,6 @@ enum ZeroVariants {}
141141
[`mem::discriminant`]: ../std/mem/fn.discriminant.html
142142
[numeric cast]: expressions/operator-expr.html#semantics
143143
[`repr` attribute]: attributes.html#ffi-attributes
144+
[default representation]: type-layout.html#the-default-representation
145+
[primitive representation]: type-layout.html#primitive-representations
146+
[`C` representation]: type-layout.html#the-c-representation

src/items/static-items.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ All access to a static is safe, but there are a number of restrictions on
1616
statics:
1717

1818
* The type must have the `Sync` trait bound to allow thread-safe access.
19-
* Statics allow using paths to statics in the [constant-expression] used to
19+
* Statics allow using paths to statics in the [constant expression] used to
2020
initialize them, but statics may not refer to other statics by value, only
2121
through a reference.
2222
* Constants cannot refer to statics.

src/items/traits.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Object safe traits can be the base trait of a [trait object]. A trait is
5252
## Supertraits
5353

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

5858
Supertraits are declared by trait bounds on the `Self` type of a trait and
@@ -124,4 +124,4 @@ let nonsense = circle.radius() * circle.area();
124124
[implementations]: items/implementations.html
125125
[generics]: items/generics.html
126126
[where clauses]: items/generics.html#where-clauses
127-
[generic functions]: items/functions.html#generic-functions
127+
[generic functions]: items/functions.html#generic-functions

src/type-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ a `packed` type cannot transitively contain another `align`ed type.
296296

297297
<div class="warning">
298298

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

src/types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ language:
3232
[machine types]: #machine-types
3333
[machine-dependent integer types]: #machine-dependent-integer-types
3434
[textual types]: #textual-types
35-
[never-type]: #never-type
35+
[never type]: #never-type
3636
[Tuples]: #tuple-types
3737
[Arrays]: #array-and-slice-types
3838
[Slices]: #array-and-slice-types

src/undocumented.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ to shrink!
2222
[`libstd` facade]: https://github.com/rust-lang/rfcs/pull/40
2323
[Trait reform]: https://github.com/rust-lang/rfcs/pull/48
2424
[Attributes on `match` arms]: https://github.com/rust-lang/rfcs/pull/49
25+
[Attributes]: attributes.html
2526
[Flexible target specification]: https://github.com/rust-lang/rfcs/pull/131
2627
[Conditional compilation]: attributes.html#conditional-compilation
2728
[Unambiguous function call syntax]: https://github.com/rust-lang/rfcs/pull/132

0 commit comments

Comments
 (0)