Fix some typos in documentation.
@@ -30,7 +30,7 @@ with :c:func:`yr_compiler_destroy`.
You can use :c:func:`yr_compiler_add_file`, :c:func:`yr_compiler_add_fd`, or
:c:func:`yr_compiler_add_string` to add one or more input sources to be
-compiler. Both of these functions receive an optional namespace. Rules added
+compiled. Both of these functions receive an optional namespace. Rules added
under the same namespace behave as if they were contained within the same
source file or string, so, rule identifiers must be unique among all the sources
sharing a namespace. If the namespace argument is ``NULL`` the rules are put
@@ -39,7 +39,7 @@ in the *default* namespace.
The :c:func:`yr_compiler_add_file`, :c:func:`yr_compiler_add_fd`, and
:c:func:`yr_compiler_add_string` functions return the number of errors found in
the source code. If the rules are correct they will return 0. If any of these
-functions return an error the compiler can't used anymore, neither for adding
+functions return an error the compiler can't be used anymore, neither for adding
more rules nor getting the compiled rules.
For obtaining detailed error information you must set a callback function by
@@ -60,7 +60,7 @@ functions. The callback function has the following prototype:
Possible values for ``error_level`` are ``YARA_ERROR_LEVEL_ERROR`` and
``YARA_ERROR_LEVEL_WARNING``. The arguments ``file_name`` and ``line_number``
-contains the file name and line number where the error or warning occurs.
+contain the file name and line number where the error or warning occurred.
``file_name`` is the one passed to :c:func:`yr_compiler_add_file` or
:c:func:`yr_compiler_add_fd`. It can be ``NULL`` if you passed ``NULL`` or if
you're using :c:func:`yr_compiler_add_string`. `rule` is a pointer to the
