Skip to content

Commit

Permalink
Merge pull request #1696 from ehuss/fix-trailing-1
Browse files Browse the repository at this point in the history
Fix paragraphs with trailing `\1`
  • Loading branch information
traviscross authored Dec 10, 2024
2 parents f2fc6a1 + 1e6b3a6 commit 06994b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/items/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A module is a container for zero or more [items].
r[items.mod.def]
A _module item_ is a module, surrounded in braces, named, and prefixed with the
keyword `mod`. A module item introduces a new, named module into the tree of
modules making up a crate\1
modules making up a crate.

r[items.mod.nesting]
Modules can nest arbitrarily.
Expand Down
2 changes: 1 addition & 1 deletion src/types/function-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r[type.fn-item]

r[type.fn-item.intro]
When referred to, a function item, or the constructor of a tuple-like struct or
enum variant, yields a zero-sized value of its _function item type_\1
enum variant, yields a zero-sized value of its _function item type_.

r[type.fn-item.unique]
That type explicitly identifies the function - its name, its type arguments, and its
Expand Down
2 changes: 1 addition & 1 deletion src/types/impl-trait.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn capture<'a, 'b, T>(x: &'a (), y: T) -> impl Sized + use<'a, T> {
```

r[type.impl-trait.generic-capture.precise.constraint-single]
Currently, only one `use<..>` bound may be present in a bounds list, such bounds are not allowed in the signature of items of a trait definition, all in-scope type and const generic parameters must be included, and all lifetime parameters that appear in other bounds of the abstract type must be included\1
Currently, only one `use<..>` bound may be present in a bounds list, such bounds are not allowed in the signature of items of a trait definition, all in-scope type and const generic parameters must be included, and all lifetime parameters that appear in other bounds of the abstract type must be included.

r[type.impl-trait.generic-capture.precise.constraint-lifetime]
Within the `use<..>` bound, any lifetime parameters present must appear before all type and const generic parameters, and the elided lifetime (`'_`) may be present if it is otherwise allowed to appear within the `impl Trait` return type.
Expand Down
2 changes: 1 addition & 1 deletion src/types/textual.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ not a surrogate), represented as a 32-bit unsigned word in the 0x0000 to 0xD7FF
or 0xE000 to 0x10FFFF range.

r[type.text.char-precondition]
It is immediate [undefined behavior] to create \1
It is immediate [undefined behavior] to create a
`char` that falls outside this range. A `[char]` is effectively a UCS-4 / UTF-32
string of length 1.

Expand Down

0 comments on commit 06994b6

Please sign in to comment.