Skip to content

Commit ca4a712

Browse files
committed
clippy fix: markdown indentation for indented items after line break
1 parent f96d5d9 commit ca4a712

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

library/core/src/async_iter/async_iter.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ pub trait AsyncIterator {
2828
/// async iterator state:
2929
///
3030
/// - `Poll::Pending` means that this async iterator's next value is not ready
31-
/// yet. Implementations will ensure that the current task will be notified
32-
/// when the next value may be ready.
31+
/// yet. Implementations will ensure that the current task will be notified
32+
/// when the next value may be ready.
3333
///
3434
/// - `Poll::Ready(Some(val))` means that the async iterator has successfully
35-
/// produced a value, `val`, and may produce further values on subsequent
36-
/// `poll_next` calls.
35+
/// produced a value, `val`, and may produce further values on subsequent
36+
/// `poll_next` calls.
3737
///
3838
/// - `Poll::Ready(None)` means that the async iterator has terminated, and
39-
/// `poll_next` should not be invoked again.
39+
/// `poll_next` should not be invoked again.
4040
///
4141
/// # Panics
4242
///

library/core/src/mem/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub use crate::intrinsics::transmute;
3636
/// * If you want to leak memory, see [`Box::leak`].
3737
/// * If you want to obtain a raw pointer to the memory, see [`Box::into_raw`].
3838
/// * If you want to dispose of a value properly, running its destructor, see
39-
/// [`mem::drop`].
39+
/// [`mem::drop`].
4040
///
4141
/// # Safety
4242
///

library/core/src/ptr/docs/as_uninit_slice.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ When calling this method, you have to ensure that *either* the pointer is null *
1010
all of the following is true:
1111

1212
* The pointer must be [valid] for reads for `ptr.len() * size_of::<T>()` many bytes,
13-
and it must be properly aligned. This means in particular:
13+
and it must be properly aligned. This means in particular:
1414

1515
* The entire memory range of this slice must be contained within a single [allocation]!
16-
Slices can never span across multiple allocations.
16+
Slices can never span across multiple allocations.
1717

1818
* The pointer must be aligned even for zero-length slices. One
19-
reason for this is that enum layout optimizations may rely on references
20-
(including slices of any length) being aligned and non-null to distinguish
21-
them from other data. You can obtain a pointer that is usable as `data`
22-
for zero-length slices using [`NonNull::dangling()`].
19+
reason for this is that enum layout optimizations may rely on references
20+
(including slices of any length) being aligned and non-null to distinguish
21+
them from other data. You can obtain a pointer that is usable as `data`
22+
for zero-length slices using [`NonNull::dangling()`].
2323

2424
* The total size `ptr.len() * size_of::<T>()` of the slice must be no larger than `isize::MAX`.
25-
See the safety documentation of [`pointer::offset`].
25+
See the safety documentation of [`pointer::offset`].
2626

2727
* You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
28-
arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
29-
In particular, while this reference exists, the memory the pointer points to must
30-
not get mutated (except inside `UnsafeCell`).
28+
arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
29+
In particular, while this reference exists, the memory the pointer points to must
30+
not get mutated (except inside `UnsafeCell`).
3131

3232
This applies even if the result of this method is unused!
3333

0 commit comments

Comments
 (0)