We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3f123 commit f411496Copy full SHA for f411496
src/structures/gdt.rs
@@ -75,7 +75,7 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
75
/// # Safety
76
///
77
/// * The user must make sure that the entries are well formed
78
- /// * The provided slice **must not be larger than 8 items** (only up to the first 8 will be observed.)
+ /// * Panics if the provided slice has more than `MAX` entries
79
#[inline]
80
pub const unsafe fn from_raw_slice(slice: &[u64]) -> Self {
81
let next_free = slice.len();
@@ -84,7 +84,7 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
84
85
assert!(
86
next_free <= MAX,
87
- "initializing a GDT from a slice requires it to be **at most** 8 elements."
+ "cannot initialize GDT with slice exceeding the maximum length"
88
);
89
90
while idx != next_free {
0 commit comments