Skip to content

Commit c999f38

Browse files
authored
Add comparison with std::io::Error
1 parent 8a4c62a commit c999f38

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ errno = "*"
1717
```
1818

1919

20+
## Comparison with `std::io::Error`
21+
22+
The standard library provides [`Error::last_os_error`][last_os_error] which fetches `errno` in the same way.
23+
24+
This crate provides these extra features:
25+
26+
- No heap allocations
27+
- Optional `#![no_std]` support
28+
- A `set_errno` function
29+
30+
[last_os_error]: https://doc.rust-lang.org/std/io/struct.Error.html#method.last_os_error
31+
32+
2033
## Examples
2134

2235
```rust

0 commit comments

Comments
 (0)