Skip to content

Commit 2435e77

Browse files
committed
Update README.md
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
1 parent 4074471 commit 2435e77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ echo $some->get(); // prints #BlackLivesMatter
3535

3636
$none = None::new(); // return `None`
3737

38-
// call `get` method on `None` will throw `NullPointerException`
38+
// calling the `get` method on `None` will throw `NullPointerException`
3939
echo $none->get(); // throw `NullPointerException`
4040

4141
echo $none->getOr('#BLM'); // prints #BLM
4242

43-
// call `new` static method with `null` will return `None`
43+
// calling the `new` static method with `null` will return `None`
4444
Option::new(null); // return `None`
4545

46-
// call `new` static method with `null will throw `NullPointerException`
46+
// calling the `new` static method with `null will throw `NullPointerException`
4747
Some::new(null); // throws `NullPointerException`
4848

49-
// call `new` static method with `None will throw `NullPointerException`
49+
// calling the `new` static method with `None will throw `NullPointerException`
5050
Some::new(None::new()); // throws `NullPointerException`
5151

5252
--- Example

0 commit comments

Comments
 (0)