From 128ad623d55876a01749697bb404f8580f0330e6 Mon Sep 17 00:00:00 2001 From: hoijui Date: Thu, 11 Feb 2021 19:47:54 +0100 Subject: [PATCH] make `Err` description easier to digest --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f200d8f..cf17114 100644 --- a/README.md +++ b/README.md @@ -3681,7 +3681,7 @@ enum Result { fn main() {} ``` -So Result has a value inside of `Ok`, and a value inside of `Err`. That is because errors usually (and should have) have information inside them. +So Result has a value inside of `Ok`, and a value inside of `Err`. That is because errors usually contain information that describes the error. `Result` means you need to think of what you want to return for `Ok`, and what you want to return for `Err`. Actually, you can decide anything. Even this is okay: