You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/concept/role-playing-game/.docs/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ match some_words {
74
74
} // Prints "I've got nothing to say"
75
75
```
76
76
77
-
In Rust, there are other ways besides `match` that you can check for and access values contained within `Option`, but `match` should be familiar to you by now.
77
+
Besides `match`, Rust has other tools available for checking and accessing values contained within `Option`, but `match` should be familiar to you by now.
78
78
79
79
Additionally, consider this a demonstration of why Rust uses `Option` instead of a null-reference.
80
80
The point is that **you _must_ check** whether or not the `Option` variable is `Some` (in which case you can go ahead and extract and use the value contained within), or `None`.
0 commit comments