Skip to content

Commit e513bc9

Browse files
committed
Minor reformatting.
1 parent 5947141 commit e513bc9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/rust.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ A view item manages the namespace of a module; it does not define new items
773773
but simply changes the visibility of other items. There are several kinds of
774774
view item:
775775

776-
* [extern mod declarations](#extern-mod-declarations)
777-
* [use declarations](#use-declarations)
776+
* [`extern mod` declarations](#extern-mod-declarations)
777+
* [`use` declarations](#use-declarations)
778778

779779
##### Extern mod declarations
780780

@@ -784,7 +784,7 @@ link_attrs : link_attr [ ',' link_attrs ] + ;
784784
link_attr : ident '=' literal ;
785785
~~~~~~~~
786786

787-
An _extern mod declaration_ specifies a dependency on an external crate.
787+
An _`extern mod` declaration_ specifies a dependency on an external crate.
788788
The external crate is then bound into the declaring scope as the `ident` provided in the `extern_mod_decl`.
789789

790790
The external crate is resolved to a specific `soname` at compile time, and a
@@ -1737,9 +1737,9 @@ A type cast expression is denoted with the binary operator `as`.
17371737
Executing an `as` expression casts the value on the left-hand side to the type
17381738
on the right-hand side.
17391739

1740-
A numeric value can be cast to any numeric type. An unsafe pointer value can
1741-
be cast to or from any integral type or unsafe pointer type. Any other cast
1742-
is unsupported and will fail to compile.
1740+
A numeric value can be cast to any numeric type.
1741+
A raw pointer value can be cast to or from any integral type or raw pointer type.
1742+
Any other cast is unsupported and will fail to compile.
17431743

17441744
An example of an `as` expression:
17451745

0 commit comments

Comments
 (0)