Skip to content

Commit 0b33ef4

Browse files
authored
doc: fix broken intra-doc links to SIZE_LAST_IN_POOL (#11)
`SIZE_LAST_IN_POOL` was renamed to `SIZE_SENTINEL` by commit 14ff6a3.
1 parent d98bf0a commit 0b33ef4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/rlsf/src/tlsf.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct BlockHdr {
110110
/// - `bit[0]` ([`SIZE_USED`]) indicates whether the block is a used memory
111111
/// block or not.
112112
///
113-
/// - `bit[1]` ([`SIZE_LAST_IN_POOL`]) indicates whether the block is the
113+
/// - `bit[1]` ([`SIZE_SENTINEL`]) indicates whether the block is the
114114
/// last one of the pool or not.
115115
///
116116
/// - `bit[GRANULARITY_LOG2..]` ([`SIZE_SIZE_MASK`]) represents the size.
@@ -143,7 +143,7 @@ impl BlockHdr {
143143
"`self` must not be a sentinel"
144144
);
145145

146-
// Safety: Since `self.size & SIZE_LAST_IN_POOL` is not lying, the
146+
// Safety: Since `self.size & SIZE_SENTINEL` is not lying, the
147147
// next block should exist at a non-null location.
148148
NonNull::new_unchecked((self as *const _ as *mut u8).add(self.size & SIZE_SIZE_MASK)).cast()
149149
}
@@ -1049,7 +1049,7 @@ impl<'pool, FLBitmap: BinInteger, SLBitmap: BinInteger, const FLLEN: usize, cons
10491049
);
10501050

10511051
// It's coalescable. Add its size to `size`. This will transfer
1052-
// any `SIZE_LAST_IN_POOL` flag `next_phys_block` may have at
1052+
// any `SIZE_SENTINEL` flag `next_phys_block` may have at
10531053
// the same time.
10541054
size += next_phys_block_size;
10551055

0 commit comments

Comments
 (0)