Closed ehllie closed 2 years ago
The spec actually specifies that the ?
should be written after the argument name rather than type, or union the type with |nil
, however adding a ?
to the param type seems to have the same effect as declaring it a |nil
union, and that's how the return type is declared in the provided example.
thx
Resolving the issue #126 as well as updating other incorrect type annotations