Skip to content

Commit 008212e

Browse files
authored
Updated README.md for Options
Improved grammar and readability in documentation for `Option` type usage and applications"
1 parent 3875e43 commit 008212e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

exercises/options/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Options
22

3-
Type Option represents an optional value: every Option is either Some and contains a value, or None, and does not.
4-
Option types are very common in Cairo code, as they have a number of uses:
3+
The **`Option`** type represents an optional value: every **`Option`** is either **`Some`** and contains a value, or **`None`**, and does not contain a value. **`Option`** types are very common in Cairo code because they serve a variety of purposes:
54

65
- Initial values
76
- Return values for functions that are not defined over their entire input range (partial functions)
8-
- Return value for otherwise reporting simple errors, where None is returned on error
7+
- Return values for functions that report simple errors, where **`None`** is returned in case of an error
98
- Optional struct fields
109
- Optional function arguments
1110

0 commit comments

Comments
 (0)