Skip to content

Commit cac484b

Browse files
1 parent a893d2e commit cac484b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ fn respond(greeting: &str) -> StringResult {
11761176
}
11771177
```
11781178

1179-
Notice that we need both the enum name and the variant name: `StringResult::StringOK`, but we can use the `use` keyword to prevent having to call `StringResult::StringOK` every time we want to use the `StringOK` variant:
1179+
Notice that we need both the enum name and the variant name: `StringResult::StringOK` in this example.
1180+
Alternatively, we can just use the varient name `StringOK` with the help of the `use` key word. Lets look at an example of that!
11801181

11811182
```rust
11821183
use StringResult::StringOK;

0 commit comments

Comments
 (0)