aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/types.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 50e86ed0..98927607 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -542,7 +542,8 @@ shown in the following example:
Campaign c = campaigns[campaignID];
if (c.amount < c.fundingGoal)
return false;
- c.beneficiary.send(c.amount);
+ if (!c.beneficiary.send(c.amount))
+ throw;
c.amount = 0;
return true;
}