Navigation Menu

Skip to content

Commit

Permalink
doc: fix English
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 20, 2014
1 parent a49f260 commit cc0af1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/source/reference/api/plugin.rst
Expand Up @@ -19,15 +19,15 @@ Reference

.. c:function:: grn_obj grn_plugin_proc_get_var(grn_ctx *ctx, grn_user_data *user_data, const char *name, int name_size)
It gets a variable value from `grn_user_data` by specify the variable name.
It gets a variable value from `grn_user_data` by specifying the variable name.
:param name: The variable name.
:param name_size: The number of bytes of name. If `name_size` is negative, `name` must be NUL-terminated. `name_size` is computed by `strlen(name)` for the case.
:return: A variable value on success, NULL otherwise.
.. c:function:: grn_obj *grn_plugin_proc_get_var_by_offset(grn_ctx *ctx, grn_user_data *user_data, unsigned int offset)
It gets a variable value from `grn_user_data` by specify the offset position of the variable.
It gets a variable value from `grn_user_data` by specifying the offset position of the variable.
:param offset: The offset position of the variable.
:return: A variable value on success, NULL otherwise.
Expand All @@ -36,16 +36,16 @@ Reference
It initializes a `grn_expr_var`.
:param var: The pointer of `grn_expr_var` object to initialize.
:param name: The name of `grn_expr_var` object to initialize.
:param var: The pointer of `grn_expr_var` object to be initialized.
:param name: The name of `grn_expr_var` object to be initialized.
:param name_size: The number of bytes of name. If `name_size` is negative, `name` must be NUL-terminated. `name_size` is computed by `strlen(name)` for the case.
:return: ``GRN_SUCCESS``. It doesn't fail.
.. c:function:: grn_obj * grn_plugin_command_create(grn_ctx *ctx, const char *name, int name_size, grn_proc_func func, unsigned int n_vars, grn_expr_var *vars)
It creates a command.
:param name: The `proc` name of the command to create.
:param name: The `proc` name of the command to be created.
:param name_size: The number of bytes of name. If `name_size` is negative, `name` must be NUL-terminated. `name_size` is computed by `strlen(name)` for the case.
:param func: The function name to be called by the created command.
:param n_vars: The number of the variables of the command to create.
Expand Down

0 comments on commit cc0af1d

Please sign in to comment.