[gnumeric] Fix documentation of MATCH [#317784]



commit 5301664f53c4c1a8f4abf55cbd9741f8af11150b
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed Aug 5 21:34:16 2009 -0600

    Fix documentation of MATCH [#317784]
    
    2009-08-05  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* functions.c (help_match): fix documentation [#317784]

 plugins/fn-lookup/ChangeLog   |    4 ++++
 plugins/fn-lookup/functions.c |   10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/plugins/fn-lookup/ChangeLog b/plugins/fn-lookup/ChangeLog
index f824e0b..318a6f9 100644
--- a/plugins/fn-lookup/ChangeLog
+++ b/plugins/fn-lookup/ChangeLog
@@ -1,5 +1,9 @@
 2009-08-05  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* functions.c (help_match): fix documentation [#317784]
+
+2009-08-05  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* functions.c (help_*): change to "new" documentation format
 	
 2009-06-20  Morten Welinder <terra gnome org>
diff --git a/plugins/fn-lookup/functions.c b/plugins/fn-lookup/functions.c
index 189781a..a1a71ad 100644
--- a/plugins/fn-lookup/functions.c
+++ b/plugins/fn-lookup/functions.c
@@ -1041,15 +1041,15 @@ gnumeric_lookup (GnmFuncEvalInfo *ei, GnmValue const * const *args)
 static GnmFuncHelp const help_match[] = {
 	{ GNM_FUNC_HELP_NAME, F_("MATCH:the index of @{seek} in @{vector}")},
         { GNM_FUNC_HELP_ARG, F_("seek:value to find")},
-        { GNM_FUNC_HELP_ARG, F_("vector:range to be searched")},
+        { GNM_FUNC_HELP_ARG, F_("vector:n by 1 or 1 by n range to be searched")},
         { GNM_FUNC_HELP_ARG, F_("type:+1 to find the largest value \xe2\x89\xa4 @{seek}, "
 				"0 to find the first value = @{seek}, or"
 				"-1 to find the smallest value \xe2\x89\xa5 @{seek}")},
-	{ GNM_FUNC_HELP_DESCRIPTION, F_("If @{vector} has more rows than columns, its first column, "
-					"otherwise its first row is searched. The respective row or "
-					"column index is returned.")},
-	{ GNM_FUNC_HELP_NOTE, F_(" For @{type} = -1 and @{type} = +1, the data must be sorted.")},
+	{ GNM_FUNC_HELP_DESCRIPTION, F_("MATCH searches @{vector} for @{seek} and returns the 1-based index.")},
+	{ GNM_FUNC_HELP_NOTE, F_(" For @{type} = -1 the data must be sorted in descending order; "
+				 "for @{type} = +1 the data must be sorted in ascending order.")},
 	{ GNM_FUNC_HELP_NOTE, F_("If @{seek} could not be found, #N/A is returned.")},
+	{ GNM_FUNC_HELP_NOTE, F_("If @{vector} is neither n by 1 nor 1 by n, #N/A is returned.")},
         { GNM_FUNC_HELP_SEEALSO, "LOOKUP"},
         { GNM_FUNC_HELP_END}
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]