Commit 19ce045
authored
Remove try_main and return Result
Since main can now return a result, the documentation examples that use `?` can be simplified. This is also the method used by the [rustdoc documentation](https://doc.rust-lang.org/rustdoc/documentation-tests.html).1 parent 2c49e91 commit 19ce045
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
0 commit comments