Skip to content

Commit

Permalink
Fix broken link by adding comma
Browse files Browse the repository at this point in the history
  • Loading branch information
mdinger committed Jul 2, 2014
1 parent 169c988 commit 4afe310
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/doc/rust.md
Expand Up @@ -2541,7 +2541,7 @@ A temporary's lifetime equals the largest lifetime of any reference that points
#### Moved and copied types

When a [local variable](#memory-slots) is used
as an [rvalue](#lvalues-rvalues-and-temporaries)
as an [rvalue](#lvalues,-rvalues-and-temporaries)
the variable will either be moved or copied, depending on its type.
For types that contain [owning pointers](#pointer-types)
or values that implement the special trait `Drop`,
Expand All @@ -2564,7 +2564,7 @@ string, boolean value, or the unit value.
### Path expressions

A [path](#paths) used as an expression context denotes either a local variable or an item.
Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).
Path expressions are [lvalues](#lvalues,-rvalues-and-temporaries).

### Tuple expressions

Expand Down Expand Up @@ -2677,7 +2677,7 @@ foo().x;
(Struct {a: 10, b: 20}).a;
~~~~

A field access is an [lvalue](#lvalues-rvalues-and-temporaries) referring to the value of that field.
A field access is an [lvalue](#lvalues,-rvalues-and-temporaries) referring to the value of that field.
When the type providing the field inherits mutabilty, it can be [assigned](#assignment-expressions) to.

Also, if the type of the expression to the left of the dot is a pointer,
Expand Down Expand Up @@ -2713,7 +2713,7 @@ idx_expr : expr '[' expr ']' ;

[Vector](#vector-types)-typed expressions can be indexed by writing a
square-bracket-enclosed expression (the index) after them. When the
vector is mutable, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to.
vector is mutable, the resulting [lvalue](#lvalues,-rvalues-and-temporaries) can be assigned to.

Indices are zero-based, and may be of any integral type. Vector access
is bounds-checked at run-time. When the check fails, it will put the
Expand All @@ -2739,7 +2739,7 @@ before the expression they apply to.
: Negation. May only be applied to numeric types.
* `*`
: Dereference. When applied to a [pointer](#pointer-types) it denotes the pointed-to location.
For pointers to mutable locations, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to.
For pointers to mutable locations, the resulting [lvalue](#lvalues,-rvalues-and-temporaries) can be assigned to.
On non-pointer types, it calls the `deref` method of the `std::ops::Deref` trait, or the
`deref_mut` method of the `std::ops::DerefMut` trait (if implemented by the type and required
for an outer expression that will or could mutate the dereference), and produces the
Expand Down Expand Up @@ -2874,8 +2874,8 @@ fn avg(v: &[f64]) -> f64 {

#### Assignment expressions

An _assignment expression_ consists of an [lvalue](#lvalues-rvalues-and-temporaries) expression followed by an
equals sign (`=`) and an [rvalue](#lvalues-rvalues-and-temporaries) expression.
An _assignment expression_ consists of an [lvalue](#lvalues,-rvalues-and-temporaries) expression followed by an
equals sign (`=`) and an [rvalue](#lvalues,-rvalues-and-temporaries) expression.

Evaluating an assignment expression [either copies or moves](#moved-and-copied-types) its right-hand operand to its left-hand operand.

Expand Down Expand Up @@ -3188,7 +3188,7 @@ fn main() {
~~~~

A `match` behaves differently depending on whether or not the head expression
is an [lvalue or an rvalue](#lvalues-rvalues-and-temporaries).
is an [lvalue or an rvalue](#lvalues,-rvalues-and-temporaries).
If the head expression is an rvalue, it is
first evaluated into a temporary location, and the resulting value
is sequentially compared to the patterns in the arms until a match
Expand Down Expand Up @@ -3552,7 +3552,7 @@ There are four varieties of pointer in Rust:
: These point to memory _owned by some other value_.
References arise by (automatic) conversion from owning pointers, managed pointers,
or by applying the borrowing operator `&` to some other value,
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
including [lvalues, rvalues or temporaries](#lvalues,-rvalues-and-temporaries).
References are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`,
for example `&int` means a reference to an integer.
Copying a reference is a "shallow" operation:
Expand Down Expand Up @@ -3854,7 +3854,7 @@ references to any boxes; the remainder of its heap is immediately freed.
A task's stack contains slots.

A _slot_ is a component of a stack frame, either a function parameter,
a [temporary](#lvalues-rvalues-and-temporaries), or a local variable.
a [temporary](#lvalues,-rvalues-and-temporaries), or a local variable.

A _local variable_ (or *stack-local* allocation) holds a value directly,
allocated within the stack's memory. The value is a part of the stack frame.
Expand Down

5 comments on commit 4afe310

@bors
Copy link
Contributor

@bors bors commented on 4afe310 Jul 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at mdinger@4afe310

@bors
Copy link
Contributor

@bors bors commented on 4afe310 Jul 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging mdinger/rust/Issue_15333 = 4afe310 into auto

@bors
Copy link
Contributor

@bors bors commented on 4afe310 Jul 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mdinger/rust/Issue_15333 = 4afe310 merged ok, testing candidate = 5012b85

@bors
Copy link
Contributor

@bors bors commented on 4afe310 Jul 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 5012b85

Please sign in to comment.