Skip to content

Commit 19dae8d

Browse files
committed
Remove remaining mentions of <- from docs
1 parent 087cbb5 commit 19dae8d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ declaring a function-local item.
13881388

13891389
~~~~~~~~{.ebnf .gram}
13901390
let_decl : "let" pat [':' type ] ? [ init ] ? ';' ;
1391-
init : [ '=' | '<-' ] expr ;
1391+
init : [ '=' ] expr ;
13921392
~~~~~~~~
13931393

13941394
A _slot declaration_ introduces a new set of slots, given by a pattern.
@@ -1795,7 +1795,7 @@ as
17951795
== !=
17961796
&&
17971797
||
1798-
= <- <->
1798+
= <->
17991799
~~~~
18001800

18011801
Operators at the same precedence level are evaluated left-to-right.
@@ -2507,7 +2507,7 @@ let a: List<int> = Cons(7, @Cons(13, @Nil));
25072507

25082508
> **Note:** Records are not nominal types, thus do not directly support recursion, visibility control,
25092509
> out-of-order field initialization, or coherent trait implementation.
2510-
> Records are therefore deprecared and will be removed in future versions of Rust.
2510+
> Records are therefore deprecated and will be removed in future versions of Rust.
25112511
> [Structure types](#structure-types) should be used instead.
25122512
25132513
The record type-constructor forms a new heterogeneous product of values.

doc/tutorial.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,11 +1205,6 @@ to other tasks. The sending task will give up ownership of the box,
12051205
and won't be able to access it afterwards. The receiving task will
12061206
become the sole owner of the box.
12071207

1208-
> ***Note:*** This discussion of copying vs. moving does not account
1209-
> for the "last use" rules that automatically promote copy operations
1210-
> to moves. We plan to remove last use from the language in
1211-
> favor of explicit moves.
1212-
12131208
## Borrowed pointers
12141209

12151210
Rust borrowed pointers are a general purpose reference/pointer type,

0 commit comments

Comments
 (0)