1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-29 22:47:43 +02:00

errors3 solution

This commit is contained in:
mo8it
2024-06-26 15:44:33 +02:00
parent 050a23ce67
commit c46d8bdf95
3 changed files with 46 additions and 12 deletions

View File

@@ -675,8 +675,8 @@ If other functions can return a `Result`, why shouldn't `main`? It's a fairly
common convention to return something like `Result<(), ErrorType>` from your
`main` function.
The unit (`()`) type is there because nothing is really needed in terms of
positive results."""
The unit type `()` is there because nothing is really needed in terms of a
positive result."""
[[exercises]]
name = "errors4"