Skip to content

Commit

Permalink
Auto merge of #539 - overlookmotel:fix-comment, r=Amanieu
Browse files Browse the repository at this point in the history
Fix comment

From looking at code, I believe this comment was incorrect (or outdated). It seems that `T`s are stored in reverse order.
  • Loading branch information
bors committed Jul 14, 2024
2 parents 894b56f + 925e220 commit ac00a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,8 @@ struct RawTableInner {
// number of buckets in the table.
bucket_mask: usize,

// [Padding], T1, T2, ..., Tlast, C1, C2, ...
// ^ points here
// [Padding], T_n, ..., T1, T0, C0, C1, ...
// ^ points here
ctrl: NonNull<u8>,

// Number of elements that can be inserted before we need to grow the table
Expand Down

0 comments on commit ac00a0b

Please sign in to comment.