From 14903f238ec999802df5c539010c6be32d72f8cd Mon Sep 17 00:00:00 2001
From: Alexander Korotkov
Date: Sun, 21 Jun 2020 04:48:03 +0300
Subject: Language fixes for docs related to opclass options
Discussion: https://postgr.es/m/20200620232145.GB17995%40telsasoft.com
Author: Justin Pryzby
Backpatch-through: 13
---
doc/src/sgml/gist.sgml | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'doc/src/sgml/gist.sgml')
diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml
index 31c28fdb61c..5d970ee9f2f 100644
--- a/doc/src/sgml/gist.sgml
+++ b/doc/src/sgml/gist.sgml
@@ -946,7 +946,7 @@ my_fetch(PG_FUNCTION_ARGS)
options
- Allows defintion of user-visible parameters that control operator
+ Allows definition of user-visible parameters that control operator
class behavior.
@@ -962,16 +962,16 @@ LANGUAGE C STRICT;
- The function has given pointer to local_relopts
+ The function is passed a pointer to a local_relopts
struct, which needs to be filled with a set of operator class
specific options. The options can be accessed from other support
- functions using PG_HAS_OPCLASS_OPTIONS() and
+ functions using the PG_HAS_OPCLASS_OPTIONS() and
PG_GET_OPCLASS_OPTIONS() macros.
- The sample implementation of my_option() and parameters usage
- in the another support function are given below:
+ An example implementation of my_options() and parameters use
+ from other support functions are given below:
typedef enum MyEnumType
@@ -990,7 +990,7 @@ typedef struct
int str_param; /* string parameter */
} MyOptionsStruct;
-/* String representations for enum values */
+/* String representation of enum values */
static relopt_enum_elt_def myEnumValues[] =
{
{"on", MY_ENUM_ON},
@@ -1002,7 +1002,7 @@ static relopt_enum_elt_def myEnumValues[] =
static char *str_param_default = "default";
/*
- * Sample validatior: checks that string is not longer than 8 bytes.
+ * Sample validator: checks that string is not longer than 8 bytes.
*/
static void
validate_my_string_relopt(const char *value)
@@ -1090,8 +1090,8 @@ my_compress(PG_FUNCTION_ARGS)
Since the representation of the key in GiST is
- flexible, it may depends on user-specified parameters. For instace,
- the length of key signature may be such parameter. See
+ flexible, it may depend on user-specified parameters. For instance,
+ the length of key signature may be specified. See
gtsvector_options() for example.
--
cgit v1.2.3