From a20add331fc68fe90aaae45fbe15e6aae665d288 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 8 Jun 2023 20:26:27 -0700 Subject: [PATCH] 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 0c6bc83..153140a 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++;