Skip to content

Commit

Permalink
Add comparison with std::io::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy authored Jan 7, 2023
1 parent 8a4c62a commit c999f38
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ errno = "*"
```


## Comparison with `std::io::Error`

The standard library provides [`Error::last_os_error`][last_os_error] which fetches `errno` in the same way.

This crate provides these extra features:

- No heap allocations
- Optional `#![no_std]` support
- A `set_errno` function

[last_os_error]: https://doc.rust-lang.org/std/io/struct.Error.html#method.last_os_error


## Examples

```rust
Expand Down

0 comments on commit c999f38

Please sign in to comment.