mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-13 08:13:52 +00:00
doc fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
0ad74b431e
commit
4a0f06d084
@ -32,7 +32,7 @@
|
||||
/// file.append_to_vec(&mut data, 1024)?;
|
||||
/// ```
|
||||
///
|
||||
/// [`ReadExt`]: crate::io::ReadExt
|
||||
/// [`ReadExt`]: crate::tools::io::ReadExt
|
||||
pub trait ByteVecExt {
|
||||
/// Grow a vector without initializing its elements. The difference to simply using `reserve`
|
||||
/// is that it also updates the actual length, making the newly allocated data part of the
|
||||
@ -70,7 +70,7 @@ pub trait ByteVecExt {
|
||||
/// the previously contained content. Since we cannot track this state through the type system,
|
||||
/// this method is marked as an unsafe API for good measure.
|
||||
///
|
||||
/// [`ReadExt`]: crate::io::ReadExt
|
||||
/// [`ReadExt`]: crate::tools::io::ReadExt
|
||||
unsafe fn grow_uninitialized(&mut self, more: usize) -> &mut [u8];
|
||||
|
||||
/// Resize a vector to a specific size without initializing its data. This is a shortcut for:
|
||||
|
Loading…
Reference in New Issue
Block a user