Skip to content

Commit f55999f

Browse files
committed
Fix markup in rust.md
This is so pdflatex will actually generate a .pdf without erroring.
1 parent d1e3e62 commit f55999f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/rust.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ type_path_tail : '<' type_expr [ ',' type_expr ] + '>'
422422

423423
A _path_ is a sequence of one or more path components _logically_ separated by
424424
a namespace qualifier (`::`). If a path consists of only one component, it may
425-
refer to either an [item](#items) or a [slot](#slot-declarations) in a local
425+
refer to either an [item](#items) or a [slot](#memory-slots) in a local
426426
control scope. If a path has multiple components, it refers to an item.
427427

428428
Every item has a _canonical path_ within its crate, but the path naming an
@@ -831,9 +831,9 @@ Here, `foo` imports `t`, but not `a`, `b`, and `c`.
831831
A _function item_ defines a sequence of [statements](#statements) and an
832832
optional final [expression](#expressions) associated with a name and a set of
833833
parameters. Functions are declared with the keyword `fn`. Functions declare a
834-
set of *input [slots](#slot-declarations)* as parameters, through which the
835-
caller passes arguments into the function, and an *output
836-
[slot](#slot-declarations)* through which the function passes results back to
834+
set of *input* [*slots*](#memory-slots) as parameters, through which the
835+
caller passes arguments into the function, and an *output*
836+
[*slot*](#memory-slots) through which the function passes results back to
837837
the caller.
838838

839839
A function may also be copied into a first class *value*, in which case the
@@ -1251,8 +1251,8 @@ laid out in the same order.
12511251

12521252
### Traits
12531253

1254-
A _trait item_ describes a set of method types. _[implementation
1255-
items](#implementations)_ can be used to provide implementations of
1254+
A _trait item_ describes a set of method types. [_implementation
1255+
items_](#implementations) can be used to provide implementations of
12561256
those methods for a specific type.
12571257

12581258
~~~~
@@ -1624,7 +1624,7 @@ rec_expr : '{' ident ':' expr
16241624
[ "with" expr ] '}'
16251625
~~~~~~~~
16261626

1627-
A _[record](#record-types) expression_ is one or more comma-separated
1627+
A [_record_](#record-types) _expression_ is one or more comma-separated
16281628
name-value pairs enclosed by braces. A fieldname can be any identifier
16291629
(including keywords), and is separated from its value expression by a
16301630
colon. To indicate that a field is mutable, the `mut` keyword is
@@ -1689,7 +1689,7 @@ expression on the left of the dot.
16891689
vec_expr : '[' "mut" ? [ expr [ ',' expr ] * ] ? ']'
16901690
~~~~~~~~
16911691

1692-
A _[vector](#vector-types) expression_ is written by enclosing zero or
1692+
A [_vector_](#vector-types) _expression_ is written by enclosing zero or
16931693
more comma-separated expressions of uniform type in square brackets.
16941694
The keyword `mut` can be written after the opening bracket to
16951695
indicate that the elements of the resulting vector may be mutated.

0 commit comments

Comments
 (0)