From 5d2a8a4b819e0dd923af9f366fe3df24b2e2bb5a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bossuat Date: Wed, 4 Oct 2023 10:44:51 +0200 Subject: [PATCH] typo --- utils/buffer/reader.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/buffer/reader.go b/utils/buffer/reader.go index eac37dc1..7d77f2d2 100644 --- a/utils/buffer/reader.go +++ b/utils/buffer/reader.go @@ -32,26 +32,26 @@ func ReadAsUint8[T constraints.Float | constraints.Integer](r Reader, c *T) (n i return ReadUint8(r, (*uint8)(unsafe.Pointer(c))) } -// ReadAsuint64Slice reads a slice of uint64 from r and stores the result into c with pointer type casting into type T. -func ReadAsuint64Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { +// ReadAsUint64Slice reads a slice of uint64 from r and stores the result into c with pointer type casting into type T. +func ReadAsUint64Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { /* #nosec G103 -- behavior and consequences well understood */ return ReadUint64Slice(r, *(*[]uint64)(unsafe.Pointer(&c))) } -// ReadAsuint32Slice reads a slice of uint32 from r and stores the result into c with pointer type casting into type T. -func ReadAsuint32Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { +// ReadAsUint32Slice reads a slice of uint32 from r and stores the result into c with pointer type casting into type T. +func ReadAsUint32Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { /* #nosec G103 -- behavior and consequences well understood */ return ReadUint32Slice(r, *(*[]uint32)(unsafe.Pointer(&c))) } -// ReadAsuint16Slice reads a slice of uint16 from r and stores the result into c with pointer type casting into type T. -func ReadAsuint16Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { +// ReadAsUint16Slice reads a slice of uint16 from r and stores the result into c with pointer type casting into type T. +func ReadAsUint16Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { /* #nosec G103 -- behavior and consequences well understood */ return ReadUint16Slice(r, *(*[]uint16)(unsafe.Pointer(&c))) } -// ReadAsuint8Slice reads a slice of uint8 from r and stores the result into c with pointer type casting into type T. -func ReadAsuint8Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { +// ReadAsUint8Slice reads a slice of uint8 from r and stores the result into c with pointer type casting into type T. +func ReadAsUint8Slice[T constraints.Float | constraints.Integer](r Reader, c []T) (n int64, err error) { /* #nosec G103 -- behavior and consequences well understood */ return ReadUint8Slice(r, *(*[]uint8)(unsafe.Pointer(&c))) }