@@ -239,10 +239,10 @@ trait_obj.method_one();
239
239
trait_obj.method_two();
240
240
```
241
241
242
- You can read more about trait objects in the Trait Object section of the
243
- Reference:
242
+ You can read more about trait objects in the [ Trait Objects] section of the
243
+ Reference.
244
244
245
- https://doc.rust-lang.org/reference/types.html#trait-objects
245
+ [Trait Objects]: https://doc.rust-lang.org/reference/types.html#trait-objects
246
246
"## ,
247
247
248
248
E0034 : r##"
@@ -874,8 +874,9 @@ lvalue expression represents a memory location and can be a variable (with
874
874
optional namespacing), a dereference, an indexing expression or a field
875
875
reference.
876
876
877
- More details can be found here:
878
- https://doc.rust-lang.org/reference/expressions.html#lvalues-rvalues-and-temporaries
877
+ More details can be found in the [Expressions] section of the Reference.
878
+
879
+ [Expressions]: https://doc.rust-lang.org/reference/expressions.html#lvalues-rvalues-and-temporaries
879
880
880
881
Now, we can go further. Here are some erroneous code examples:
881
882
@@ -3485,10 +3486,10 @@ struct Foo<'a, T: 'a> {
3485
3486
}
3486
3487
```
3487
3488
3488
- PhantomData can also be used to express information about unused type
3489
- parameters. You can read more about it in the API documentation:
3489
+ [ PhantomData] can also be used to express information about unused type
3490
+ parameters.
3490
3491
3491
- https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3492
+ [PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3492
3493
"## ,
3493
3494
3494
3495
E0393 : r##"
@@ -4360,7 +4361,9 @@ let variable = Foo { x: 0, y: -12 };
4360
4361
println!("x: {}, y: {}", variable.x, variable.y);
4361
4362
```
4362
4363
4363
- For more information see The Rust Book: https://doc.rust-lang.org/book/
4364
+ For more information about primitives and structs, take a look at The Book:
4365
+ https://doc.rust-lang.org/book/first-edition/primitive-types.html
4366
+ https://doc.rust-lang.org/book/first-edition/structs.html
4364
4367
"## ,
4365
4368
4366
4369
E0611 : r##"
0 commit comments