Skip to content

Commit

Permalink
docs ~ update README for example
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jan 8, 2023
1 parent f8c04fc commit 63b821c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Example
-------

This simple example:
```

```rust
// `cargo run --example ex` (executes this example)

use platform_info::*;

fn main() {
Expand All @@ -25,8 +28,10 @@ fn main() {
println!("{}", uname.osname());
}
```

should return something like:
```

```text
Linux
hostname
5.10.0-8-amd64
Expand All @@ -35,6 +40,8 @@ x86_64
GNU/Linux
```

Use `cargo run --example ex` to execute this code.

License
-------

Expand Down

0 comments on commit 63b821c

Please sign in to comment.