Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake authored Oct 14, 2024
1 parent 1ef8522 commit e1f6f66
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,6 @@ Add this to your `Cargo.toml`:
sysexits = "0.8.2"
```

### Example

```rust
use std::str;

use sysexits::ExitCode;

fn main() -> ExitCode {
let bytes = [0xf0, 0x9f, 0x92, 0x96];
match str::from_utf8(&bytes) {
Ok(string) => {
println!("{string}");
ExitCode::Ok
}
Err(err) => {
eprintln!("{err}");
ExitCode::DataErr
}
}
}
```

### Crate features

#### `std`
Expand Down

0 comments on commit e1f6f66

Please sign in to comment.