Skip to content

Commit fabff90

Browse files
committed
fix more links
1 parent 8942f34 commit fabff90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/expressions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ let x: i32 = { println!("Hello."); 5 };
373373
assert_eq!(5, x);
374374
```
375375

376-
Blocks are always [rvalues](#lvalues-and-rvalues) and evaluate the last
376+
Blocks are always [rvalues](expressions.html#lvalues-and-rvalues) and evaluate the last
377377
expression in rvalue context. This can be used to force moving a value
378378
if really needed.
379379

@@ -960,7 +960,7 @@ well as the following additional casts. Here `*T` means either `*const T` or
960960
| `*T` where `T: Sized` | Numeric type | Pointer to address cast |
961961
| Integer type | `*V` where `V: Sized` | Address to pointer cast |
962962
| `&[T; n]` | `*const T` | Array to pointer cast |
963-
| [Function pointer](type.html#function-types) | `*V` where `V: Sized` | Function pointer to pointer cast |
963+
| [Function pointer](types.html#function-types) | `*V` where `V: Sized` | Function pointer to pointer cast |
964964
| Function pointer | Integer | Function pointer to address cast |
965965

966966
\* or `T` and `V` are compatible unsized types, e.g., both slices, both the

src/tokens.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Note that the Rust syntax considers `-1i8` as an application of the [unary minus
259259
operator] to an integer literal `1i8`, rather than
260260
a single integer literal.
261261

262-
[unary minus operator]: expressions.html#unary-operator-expressions
262+
[unary minus operator]: expressions.html#negation-operators
263263

264264
#### Floating-point literals
265265

0 commit comments

Comments
 (0)