Closed mathroc closed 7 years ago
Rust std::option::Option
panicked with the following message:
thread 'main' panicked at 'called
Option::unwrap()
on aNone
value', /checkout/src/libcore/option.rs:33
It fits with your suggestion. I will make a PR.
@mathroc Please, could you review #12? Thanks!
return $this->expect('Unwrap a null value.');
should
null
appear in the error message ? maybe something with None instead so that$this->value
remains an implementation details ?I saw that the class comment says
so it might be that null is not only an implementation detail