From cfe117c98f5c1ae74dd45c9bd61cd50c30c7fb28 Mon Sep 17 00:00:00 2001 From: Philip Giuliani Date: Thu, 20 Nov 2014 08:41:44 +0100 Subject: [PATCH] Change to implicit begin block One chapter after the `Do not return from an ensure block`, is written that i should use `implicit begin blocks`. So why this isn't one? --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3f41854f3..81e590995 100644 --- a/README.md +++ b/README.md @@ -2500,11 +2500,9 @@ condition](#safe-assignment-in-condition). ```Ruby def foo - begin - fail - ensure - return 'very bad idea' - end + fail + ensure + return 'very bad idea' end ```