Skip to content

Commit ad9331e

Browse files
authored
Fix few documentation typos (#12)
Fix few typos
1 parent 428e8ab commit ad9331e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Read the [documentation](https://doc.maybe.texthtml.net) full API description, d
3030
function divide(float $numerator, float $denominator): Option {
3131
return match ($denomintor) {
3232
0.0 => Option\none(),
33-
_ => Option\some($numerator / $denominator)
33+
default => Option\some($numerator / $denominator),
3434
};
3535
}
3636

@@ -40,7 +40,7 @@ $result = divide(2.0, 3.0);
4040
// Pattern match to retrieve the value
4141
if ($result instanceof Option\Some) {
4242
// The division was valid
43-
echo "Result: {$option->unwrap()}");
43+
echo "Result: {$option->unwrap()}";
4444
} else {
4545
// The division was invalid
4646
echo "Cannot divide by 0";

0 commit comments

Comments
 (0)