diff options
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index d7681ee5..35f0e247 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -545,7 +545,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; } |