From e990b9b885dd09e5fc3f0727a07f9d30df7b179d Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 11 Apr 2020 14:53:13 +0200 Subject: [PATCH] README: Remove explicit "return" from "Option" example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab2a5d8..bc6396d 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ The attribute can be used to make a function that returns an Option using the #[throws(as Option)] fn foo(x: bool) -> i32 { if x { - return 0; + 0 } else { throw!(); }