Skip to content

Commit 0de173b

Browse files
JustForFun88Amanieu
andcommitted
Update src/raw/mod.rs
Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent 0bacc84 commit 0de173b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ impl<A> RawTableInner<A> {
10751075
/// Creates a new empty hash table without allocating any memory.
10761076
///
10771077
/// In effect this returns a table with exactly 1 bucket. However we can
1078-
/// leave the data pointer dangling since that bucket is never written to
1078+
/// leave the data pointer dangling since that bucket is never accessed
10791079
/// due to our load factor forcing us to always have at least 1 free bucket.
10801080
#[inline]
10811081
const fn new_in(alloc: A) -> Self {
@@ -1092,7 +1092,7 @@ impl<A> RawTableInner<A> {
10921092

10931093
impl<A: Allocator + Clone> RawTableInner<A> {
10941094
/// Allocates a new [`RawTableInner`] with the given number of buckets.
1095-
/// The control bytes are left uninitialized.
1095+
/// The control bytes and buckets are left uninitialized.
10961096
///
10971097
/// # Safety
10981098
///

0 commit comments

Comments
 (0)