aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/units-and-global-variables.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 4cb34fbd..a6f8ca87 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -120,11 +120,11 @@ Error Handling
--------------
``assert(bool condition)``:
- throws if the condition is not met - to be used for internal errors.
+ invalidates the transaction if the condition is not met - to be used for internal errors.
``require(bool condition)``:
- throws if the condition is not met - to be used for errors in inputs or external components.
+ reverts if the condition is not met - to be used for errors in inputs or external components.
``require(bool condition, string message)``:
- throws if the condition is not met - to be used for errors in inputs or external components. Also provides an error message.
+ reverts if the condition is not met - to be used for errors in inputs or external components. Also provides an error message.
``revert()``:
abort execution and revert state changes
``revert(string reason)``: