We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6be7af commit 4e72a62Copy full SHA for 4e72a62
rust/kernel/uaccess.rs
@@ -285,8 +285,7 @@ impl UserSliceReader {
285
let len = self.length;
286
buf.reserve(len, flags)?;
287
288
- // The call to `try_reserve` was successful, so the spare capacity is at least `len` bytes
289
- // long.
+ // The call to `reserve` was successful, so the spare capacity is at least `len` bytes long.
290
self.read_raw(&mut buf.spare_capacity_mut()[..len])?;
291
292
// SAFETY: Since the call to `read_raw` was successful, so the next `len` bytes of the
0 commit comments