Skip to content

Commit 93f9ea4

Browse files
authored
Merge pull request #4173 from Andriamanitra/str-char-patch
Update text to reflect the change from '&str' to 'char' in example
2 parents fb44462 + 2a4c00c commit 93f9ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch06-01-defining-an-enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ For now, all you need to know is that `<T>` means that the `Some` variant of
249249
the `Option` enum can hold one piece of data of any type, and that each
250250
concrete type that gets used in place of `T` makes the overall `Option<T>` type
251251
a different type. Here are some examples of using `Option` values to hold
252-
number types and string types:
252+
number types and char types:
253253

254254
```rust
255255
{{#rustdoc_include ../listings/ch06-enums-and-pattern-matching/no-listing-06-option-examples/src/main.rs:here}}

0 commit comments

Comments
 (0)