pgvector.git / summary / log / commit / refs

commit    a20add331fc68fe90aaae45fbe15e6aae665d288
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Jun 09 03:26:27 2023 +0000

    Updated comments [skip ci]


src/vector.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/vector.c b/src/vector.c index 0c6bc831..153140a3 100644 --- a/src/vector.c +++ b/src/vector.c @@ -87,9 +87,7 @@ CheckElement(float value) } /* - * PostgreSQL has with the array_isspace function for the character checking which is reimplemented - * as vector_isspace, as it's static, source code link: - * https://github.com/postgres/postgres/blob/378d73ef204d0dcbeab834d52478e8cb90578ab7/src/backend/utils/adt/arrayfuncs.c#L438 + * Check for whitespace, since array_isspace() is static */ static inline bool vector_isspace(char ch) @@ -216,7 +214,8 @@ vector_in(PG_FUNCTION_ARGS) errdetail("Unexpected end of input."))); stringEnd++; - /* only whitespace is allowed after the closing brace */ + + /* Only whitespace is allowed after the closing brace */ while (vector_isspace(*stringEnd)) stringEnd++; [parent: f03381bc623e]