diff --git a/docs/types.rst b/docs/types.rst index 50e86ed06..98927607d 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; }