Skip to content

Commit

Permalink
Improve the SIMD.from_bytes() and SIMD.as_bytes() docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Saelices <[email protected]>
  • Loading branch information
msaelices committed Jan 24, 2025
1 parent cd16ec4 commit e9c40f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/src/builtin/simd.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ struct SIMD[type: DType, size: Int](
fn from_bytes[
big_endian: Bool = False
](bytes: InlineArray[Byte, Self.type_len]) -> Scalar[type]:
"""Converts a byte array to an integer.
"""Converts a byte array to an scalar integer.
Args:
bytes: The byte array to convert.
Expand All @@ -1989,7 +1989,7 @@ struct SIMD[type: DType, size: Int](
fn as_bytes[
big_endian: Bool = False
](self) -> InlineArray[Byte, Self.type_len]:
"""Convert the integer to a byte array.
"""Convert the scalar integer to a byte array.
Parameters:
big_endian: Whether the byte array should be big-endian.
Expand Down

0 comments on commit e9c40f0

Please sign in to comment.