Skip to content

Commit e81406a

Browse files
committed
Bump v3.0.0
1 parent 559a159 commit e81406a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[license-badge]: https://img.shields.io/crates/l/system_shutdown.svg
1515
[license-url]: https://github.com/risoflora/system_shutdown#license
1616

17-
`system_shutdown` provides a cross platform way to shut down, reboot or log out the system.
17+
`system_shutdown` provides a cross platform way to shut down, reboot or log out operations.
1818

1919
Supported platforms: Linux, Windows and MacOS.
2020

@@ -28,22 +28,22 @@ extern crate system_shutdown;
2828
use system_shutdown::shutdown;
2929

3030
fn main() {
31-
match shutdown(true) {
32-
None => println!("Shutting down, bye!"),
33-
Some(code) => println!("Failed to shut down. (Os code: {})", code),
31+
match shutdown() {
32+
Ok(_) => println!("Shutting down, bye!"),
33+
Err(error) => eprintln!("Failed to shut down: {}", error),
3434
}
3535
}
3636
```
3737

38-
In most of the systems it does not require the user to be root/admin.
38+
In most of the systems it does not requires the user to be root/admin.
3939

4040
## Usage
4141

4242
Add this to your `Cargo.toml`:
4343

4444
```ini
4545
[dependencies]
46-
system_shutdown = "2.1.0"
46+
system_shutdown = "3.0.0"
4747
```
4848

4949
and this to your crate root:
@@ -54,7 +54,7 @@ extern crate system_shutdown;
5454

5555
## Contributions
5656

57-
Pull Requests and Issues welcome!
57+
Pull Requests and Issues are welcome!
5858

5959
## License
6060

0 commit comments

Comments
 (0)