From e3760735a83f66d710fcc276736691547f799476 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sat, 27 Feb 2016 18:40:08 -0500 Subject: [PATCH] Remove unnecessary trailing space in style guide. I agree to license my contributions to each file under the same terms given at the top of each file I changed. --- STYLE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STYLE.md b/STYLE.md index 68351797c..6d1ee7412 100644 --- a/STYLE.md +++ b/STYLE.md @@ -56,7 +56,7 @@ will not let callers silently ignore the return value of functions that return *ring* functions generally do not report error codes for a variety of reasons; when they fail, they only report that they fail. If a function only needs to return a boolean indicator that it succeeded or failed, use `Result<(), ()>` as -the return type. +the return type. If an external function (e.g. part of the Rust standard library) returns `Option` to indicate failure, use `ok_or(())` to map it to `Result`.