Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docsrc: fix typos thanks to lintian #54

Merged
merged 1 commit into from
Feb 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docsrc/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The output of ``luacheck`` consists of separate reports for each checked file an

Total: 14 warnings / 1 error in 4 files

``luacheck`` exits with 0 if no warnings or errors occured and with a positive number otherwise.
``luacheck`` exits with 0 if no warnings or errors occurred and with a positive number otherwise.

.. _cliopts:

Expand Down
2 changes: 1 addition & 1 deletion docsrc/inline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ only 1+

Options that take no arguments can be prefixed with ``no`` to invert their meaning. E.g. ``--luacheck: no unused args`` disables unused argument warnings.

Part of the file affected by inline option dependes on where it is placed. If there is any code on the line with the option, only that line is affected; otherwise, everthing till the end of the current closure is. In particular, inline options at the top of the file affect all of it:
Part of the file affected by inline option dependes on where it is placed. If there is any code on the line with the option, only that line is affected; otherwise, everything till the end of the current closure is. In particular, inline options at the top of the file affect all of it:

.. code-block:: lua
:linenos:
Expand Down
2 changes: 1 addition & 1 deletion docsrc/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Report format

A final report is an array of file reports plus fields ``warnings``, ``errors`` and ``fatals`` containing total number of warnings, errors and fatal errors, correspondingly.

A file report is an array of issues (warnings or errors). If a fatal error occured while checking a file, its report will have ``fatal`` field containing error type and ``msg`` field containing error message.
A file report is an array of issues (warnings or errors). If a fatal error occurred while checking a file, its report will have ``fatal`` field containing error type and ``msg`` field containing error message.

An issue is a table with field ``code`` indicating its type (see :doc:`warnings`), and fields ``line``, ``column`` and ``end_column`` pointing to the source of the warning. ``name`` field may contain name of related variable. Issues of some types can also have additional fields:

Expand Down