Skip to content

Commit a861eb0

Browse files
Rollup merge of #39027 - behnam:typo, r=frewsxcv
[libcollections] [doc] Fix typo in documentation Replace two instances of `an raw` with `a raw` in documentation blocks.
2 parents 5d03288 + 6022aeb commit a861eb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/doc/book/ffi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ However it is often desired that the callback is targeted to a special
309309
Rust object. This could be the object that represents the wrapper for the
310310
respective C object.
311311
312-
This can be achieved by passing an raw pointer to the object down to the
312+
This can be achieved by passing a raw pointer to the object down to the
313313
C library. The C library can then include the pointer to the Rust object in
314314
the notification. This will allow the callback to unsafely access the
315315
referenced Rust object.

src/libcollections/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ impl<T> [T] {
423423
core_slice::SliceExt::get_unchecked_mut(self, index)
424424
}
425425

426-
/// Returns an raw pointer to the slice's buffer.
426+
/// Returns a raw pointer to the slice's buffer.
427427
///
428428
/// The caller must ensure that the slice outlives the pointer this
429429
/// function returns, or else it will end up pointing to garbage.

0 commit comments

Comments
 (0)