Revise the docs of the slab and remove an unused type

This commit is contained in:
Zhang Junyang
2025-03-14 20:57:06 +08:00
committed by Tate, Hongliang Tian
parent 3d21258baf
commit 288942b970
7 changed files with 37 additions and 38 deletions

View File

@ -85,7 +85,7 @@ impl CommonSizeClass {
/// Get the type of the slot from the layout.
///
/// It should be used to define [`ostd::global_heap_allocator_slot_type_map`].
/// It should be used to define [`ostd::global_heap_allocator_slot_map`].
pub const fn type_from_layout(layout: Layout) -> Option<SlotInfo> {
if let Some(class) = CommonSizeClass::from_layout(layout) {
return Some(SlotInfo::SlabSlot(class as usize));