Skip to content

Commit

Permalink
Merge pull request #343 from Arthur-Milchior/readme1
Browse files Browse the repository at this point in the history
Update README.md with a link and a typo correction
  • Loading branch information
dtolnay committed Apr 10, 2024
2 parents 074bdea + 59b4e79 commit f01080b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -26,7 +26,7 @@ anyhow = "1.0"
return type of any fallible function.

Within the function, use `?` to easily propagate any error that implements the
`std::error::Error` trait.
[`std::error::Error`] trait.

```rust
use anyhow::Result;
Expand All @@ -38,6 +38,8 @@ anyhow = "1.0"
}
```

[`std::error::Error`]: https://doc.rust-lang.org/std/error/trait.Error.html

- Attach context to help the person troubleshooting the error understand where
things went wrong. A low-level error like "No such file or directory" can be
annoying to debug without more context about what higher level step the
Expand Down Expand Up @@ -125,7 +127,7 @@ anyhow = "1.0"

## No-std support

In no_std mode, the same API is almost all available and works the same way. To
In no_std mode, the same API is almost entirely available and works the same way. To
depend on Anyhow in no_std mode, disable our default enabled "std" feature in
Cargo.toml. A global allocator is required.

Expand Down

0 comments on commit f01080b

Please sign in to comment.