Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit fd67d99

Browse files
author
Tyera
authored
Fix incorrect code doc (#5177)
Fix incorrect comment
1 parent db5eaa7 commit fd67d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/pod/src/bytemuck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn pod_from_bytes_mut<T: Pod>(bytes: &mut [u8]) -> Result<&mut T, ProgramErr
3636
bytemuck::try_from_bytes_mut(bytes).map_err(|_| ProgramError::InvalidArgument)
3737
}
3838

39-
/// Convert a slice into a mutable `Pod` slice (zero copy)
39+
/// Convert a slice into a `Pod` slice (zero copy)
4040
pub fn pod_slice_from_bytes<T: Pod>(bytes: &[u8]) -> Result<&[T], ProgramError> {
4141
bytemuck::try_cast_slice(bytes).map_err(|_| ProgramError::InvalidArgument)
4242
}

0 commit comments

Comments
 (0)