Skip to content

Commit d0e6cc7

Browse files
committed
Fix some spelling errors
1 parent 876582e commit d0e6cc7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/expressions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ The following expressions can create mutable lvalues:
7272
* [Temporary values](#temporary-lifetimes).
7373
* [Fields](#field-expressions), this evaluates the subexpression in a mutable
7474
lvalue context.
75-
* [Dereferenes](#the-dereference-operator) of a `*mut T` pointer.
75+
* [Dereferences](#the-dereference-operator) of a `*mut T` pointer.
7676
* Dereference of a variable, or field of a variable, with type `&mut T`. Note:
7777
this is an exception to the requirement for the next rule.
7878
* Dereferences of a type that implements `DerefMut`, this then requires that
7979
the value being dereferenced is evaluated is a mutable lvalue context.
8080
* [Indexing](#index-expressions) of a type that implements `DerefMut`, this
81-
then evalutes the value being indexed (but not the index) in mutable lvalue
81+
then evaluates the value being indexed (but not the index) in mutable lvalue
8282
context.
8383

8484
### Temporary lifetimes
@@ -168,7 +168,7 @@ also constant expressions:
168168
* [Paths](#path-expressions) to [functions](items.html#functions) and constants.
169169
Recursively defining constants is not allowed.
170170
* Paths to statics, so long as only their address, not their value, is used.
171-
This includes using their value indirectly through a compilicated expression.
171+
This includes using their value indirectly through a complicated expression.
172172
\*
173173
* [Tuple expressions](#tuple-expressions).
174174
* [Array expressions](#array-expressions).
@@ -441,8 +441,8 @@ A _field expression_ consists of an expression followed by a single dot and an
441441
[identifier](identifiers.html), when not immediately followed by a
442442
parenthesized expression-list (the latter is always a [method call
443443
expression](#method-call-expressions)). A field expression denotes a field of a
444-
[struct](types.html#struct-types). To call a function stored in a struct
445-
parentheses are needed around the field expression
444+
[struct](types.html#struct-types) or [union](items.html#unions). To call a
445+
function stored in a struct parentheses are needed around the field expression
446446

447447
```rust,ignore
448448
mystruct.myfield;
@@ -452,9 +452,9 @@ mystruct.method(); // Method expression
452452
(mystruct.function_field)() // Call expression containing a field expression
453453
```
454454

455-
A field access is an [lvalue](expressions.html#lvalues-and-rvalues) referring to the value of
456-
that field. When the subexpression is [mutable](#mutability), the field
457-
expression is also mutable.
455+
A field access is an [lvalue](expressions.html#lvalues-and-rvalues) referring
456+
to the location of that field. When the subexpression is
457+
[mutable](#mutability), the field expression is also mutable.
458458

459459
Also, if the type of the expression to the left of the dot is a pointer, it is
460460
automatically dereferenced as many times as necessary to make the field access
@@ -482,7 +482,7 @@ let d: String = x.f3; // Move out of x.f3
482482
### Tuple indexing expressions
483483

484484
[Tuples](types.html#tuple-types) and [struct tuples](items.html#structs) can be
485-
indexed using the number corresponding to the possition of the field. The index
485+
indexed using the number corresponding to the position of the field. The index
486486
must be written as a [decimal literal](tokens.html#integer-literals) with no
487487
underscores or suffix. Tuple indexing expressions also differ from field
488488
expressions in that they can unambiguously be called as a function. In all

src/linkage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ The standard library in general strives to support both statically linked and
132132
dynamically linked C runtimes for targets as appropriate. For example the
133133
`x86_64-pc-windows-msvc` and `x86_64-unknown-linux-musl` targets typically come
134134
with both runtimes and the user selects which one they'd like. All targets in
135-
the compiler have a default mode of linking to the C runtime. Typicall targets
136-
linked dynamically by default, but there are exceptions which are static by
135+
the compiler have a default mode of linking to the C runtime. Typically targets
136+
are linked dynamically by default, but there are exceptions which are static by
137137
default such as:
138138

139139
* `arm-unknown-linux-musleabi`

0 commit comments

Comments
 (0)