diff options
| author | Hannes Körber <hannes@hkoerber.de> | 2022-12-15 14:05:01 +0100 |
|---|---|---|
| committer | Hannes Körber <hannes@hkoerber.de> | 2022-12-15 14:05:03 +0100 |
| commit | 9671dd239d37cf6001eaea1f85f9f81200b8ade6 (patch) | |
| tree | a916f5adec95590b7a402af7ecaaca3897f66127 /library/alloc | |
| parent | d67000e44e1b9908c81fc4d5de875608f1b80ae9 (diff) | |
| download | rust-9671dd239d37cf6001eaea1f85f9f81200b8ade6.tar.gz rust-9671dd239d37cf6001eaea1f85f9f81200b8ade6.zip | |
doc: Fix a few small issues
* A few typos around generic types (`;` vs `,`) * Use inline code formatting for code fragments * One instance of wrong wording
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/collections/vec_deque/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index 4b9bd74d392..be615b70ced 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -2541,7 +2541,7 @@ impl<T, A: Allocator> VecDeque<T, A> { /// The deque is assumed to be partitioned according to the given predicate. /// This means that all elements for which the predicate returns true are at the start of the deque /// and all elements for which the predicate returns false are at the end. - /// For example, [7, 15, 3, 5, 4, 12, 6] is a partitioned under the predicate x % 2 != 0 + /// For example, `[7, 15, 3, 5, 4, 12, 6]` is partitioned under the predicate `x % 2 != 0` /// (all odd numbers are at the start, all even at the end). /// /// If the deque is not partitioned, the returned result is unspecified and meaningless, |
