From ffda2e5945bfb061627444b1298bb91eb842be7e Mon Sep 17 00:00:00 2001 From: shaoyue Date: Thu, 2 Dec 2021 18:07:33 +0800 Subject: [PATCH] [skip ci] Fix comment for PayloadReader (#12621) Signed-off-by: shaoyue.chen --- internal/storage/payload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/storage/payload.go b/internal/storage/payload.go index b7f6ef2910..c74733f665 100644 --- a/internal/storage/payload.go +++ b/internal/storage/payload.go @@ -538,7 +538,7 @@ func (r *PayloadReader) GetOneStringFromPayload(idx int) (string, error) { return C.GoStringN(cStr, cSize), nil } -// ,dimension, error +// GetBinaryVectorFromPayload returns vector, dimension, error func (r *PayloadReader) GetBinaryVectorFromPayload() ([]byte, int, error) { if r.colType != schemapb.DataType_BinaryVector { return nil, 0, errors.New("incorrect data type") @@ -558,7 +558,7 @@ func (r *PayloadReader) GetBinaryVectorFromPayload() ([]byte, int, error) { return slice, int(cDim), nil } -// ,dimension, error +// GetFloatVectorFromPayload returns vector, dimension, error func (r *PayloadReader) GetFloatVectorFromPayload() ([]float32, int, error) { if r.colType != schemapb.DataType_FloatVector { return nil, 0, errors.New("incorrect data type")