From 276859e795c60e127a143ed6d21a005cd78cc37c Mon Sep 17 00:00:00 2001 From: Fishon Amos <43862685+fishonamos@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:24:08 +0100 Subject: [PATCH] minor options/README.md (#202) --- exercises/options/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/exercises/options/README.md b/exercises/options/README.md index 2c0e07ee0..577c18851 100644 --- a/exercises/options/README.md +++ b/exercises/options/README.md @@ -1,14 +1,13 @@ # Options -Type Option represents an optional value: every Option is either Some and contains a value, or None, and does not. -Option types are very common in Cairo code, as they have a number of uses: +Type **`Option`** represents an optional value: every **`Option`** is either **`Some`** and contains a value, or *`None`**, and does not. +**`Option`** types are very common in Cairo code, as they have a number of uses: - Initial values - Return values for functions that are not defined over their entire input range (partial functions) -- Return value for otherwise reporting simple errors, where None is returned on error +- Return value for otherwise reporting simple errors, where **`None`** is returned on error - Optional struct fields - Optional function arguments - ## Further Information - [Option Implementation](https://book.cairo-lang.org/ch06-01-enums.html#the-option-enum-and-its-advantages)