From a64516a7e6931956a47a578d8ccfa438bf712d9b Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Sat, 6 Jul 2024 01:04:46 +1000 Subject: [PATCH] Fix issues in std-types/result.md (#2186) The expression excercise is using the standard `Result` type instead of `Res`. Co-authored-by: Jason Lin --- src/std-types/result.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/std-types/result.md b/src/std-types/result.md index f11433a0..0fe7854a 100644 --- a/src/std-types/result.md +++ b/src/std-types/result.md @@ -5,9 +5,8 @@ minutes: 5 # Result `Result` is similar to `Option`, but indicates the success or failure of an -operation, each with a different type. This is similar to the `Res` defined in -the expression exercise, but generic: `Result` where `T` is used in the -`Ok` variant and `E` appears in the `Err` variant. +operation, each with a different enum variant. It is generic: `Result` +where `T` is used in the `Ok` variant and `E` appears in the `Err` variant. ```rust,editable use std::fs::File;