You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 74812db
Browse filesBrowse the repository at this point in the historyBrowse files
*Usage* means a customary pattern of use (as in "regional usage
varies") or a rate or quantity of use (as in "disk usage"). It
doesn't mean *use*. Whenever *use* works, *usage* shouldn't appear.
Let's fix each incorrect use of *usage* -- i.e., adopt better *usage*
of *usage* -- throughout the prose of the Reference.
Copy file name to clipboardExpand all lines: src/inline-assembly.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ unsafe { core::arch::asm!("/* {x} */"); } // ERROR: no argument named x
183
183
```
184
184
185
185
r[asm.ts-args.one-or-more]
186
-
An `asm!` invocation may have one or more template string arguments; an `asm!` with multiple template string arguments is treated as if all the strings were concatenated with a `\n` between them. The expected usage is for each template string argument to correspond to a line of assembly code.
186
+
An `asm!` invocation may have one or more template string arguments; an `asm!` with multiple template string arguments is treated as if all the strings were concatenated with a `\n` between them. The expected use is for each template string argument to correspond to a line of assembly code.
Copy file name to clipboardExpand all lines: src/items/constant-items.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ r[items.const.intro]
11
11
A *constant item* is an optionally named _[constant value]_ which is not associated with a specific memory location in the program.
12
12
13
13
r[items.const.behavior]
14
-
Constants are essentially inlined wherever they are used, meaning that they are copied directly into the relevant context when used. This includes usage of constants from external crates, and non-[`Copy`] types. References to the same constant are not necessarily guaranteed to refer to the same memory address.
14
+
Constants are essentially inlined wherever they are used, meaning that they are copied directly into the relevant context when used. This includes use of constants from external crates, and non-[`Copy`] types. References to the same constant are not necessarily guaranteed to refer to the same memory address.
15
15
16
16
r[items.const.namespace]
17
17
The constant declaration defines the constant value in the [value namespace] of the module or block where it is located.
Copy file name to clipboardExpand all lines: src/items/use-declarations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ mod example {
201
201
```
202
202
203
203
> [!NOTE]
204
-
> `self` may also be used as the first segment of a path. The usage of `self` as the first segment and inside a `use` brace is logically the same; it means the current module of the parent segment, or the current module if there is no parent segment. See [`self`] in the paths chapter for more information on the meaning of a leading `self`.
204
+
> `self` may also be used as the first segment of a path. The use of `self` as the first segment and inside a `use` brace is logically the same; it means the current module of the parent segment, or the current module if there is no parent segment. See [`self`] in the paths chapter for more information on the meaning of a leading `self`.
205
205
206
206
r[items.use.self.namespace]
207
207
`self` only creates a binding from the [type namespace] of the parent entity. For example, in the following, only the `foo` mod is imported:
Copy file name to clipboardExpand all lines: src/names/namespaces.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ r[names.namespaces]
4
4
r[names.namespaces.intro]
5
5
A *namespace* is a logical grouping of declared [names]. Names are segregated into separate namespaces based on the kind of entity the name refers to. Namespaces allow the occurrence of a name in one namespace to not conflict with the same name in another namespace.
6
6
7
-
There are several different namespaces that each contain different kinds of entities. The usage of a name will look for the declaration of that name in different namespaces, based on the context, as described in the [name resolution] chapter.
7
+
There are several different namespaces that each contain different kinds of entities. The use of a name will look for the declaration of that name in different namespaces, based on the context, as described in the [name resolution] chapter.
8
8
9
9
r[names.namespaces.kinds]
10
10
The following is a list of namespaces, with their corresponding entities:
0 commit comments