summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-01 13:42:36 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-01 13:42:36 +0300
commitad2889c1416c8576c783aa15747d2ceb9de9d6ee (patch)
tree3f5b837f35d917b46f43d8a49bd94142998d6eb5 /docs/library
parent8ad1659f686ab8893f2338609cd906c524fad274 (diff)
downloadmicropython-ad2889c1416c8576c783aa15747d2ceb9de9d6ee.tar.gz
micropython-ad2889c1416c8576c783aa15747d2ceb9de9d6ee.zip
docs/sys: Clarify description of sys.exit().
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/sys.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index 237ebaf91f..a6543da275 100644
--- a/docs/library/sys.rst
+++ b/docs/library/sys.rst
@@ -7,10 +7,11 @@
Functions
---------
-.. function:: exit([retval])
+.. function:: exit(retval=0)
- Raise a ``SystemExit`` exception. If an argument is given, it is the
- value given to ``SystemExit``.
+ Terminate current program with a given exit code. Underlyingly, this
+ function raise as ``SystemExit`` exception. If an argument is given, its
+ value given as an argument to ``SystemExit``.
.. function:: print_exception(exc, [file])