Skip to content

Commit a8dce11

Browse files
committed
Readme examples compile now
1 parent ec3055e commit a8dce11

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ This crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports
99
* Add the dependency `nfd` in your ```Cargo.toml```
1010
```toml
1111
[dependencies]
12-
nfd = { git = "https://github.com/saurvs/nfd-rs.git" }
12+
nfd = "0.0.4"
1313
```
1414

1515
* Open a single file dialog
1616
```rust
1717
extern crate nfd;
1818

19-
use nfd::Response
19+
use nfd::Response;
2020

2121
fn main() {
2222

@@ -26,6 +26,7 @@ This crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports
2626

2727
match result {
2828
Response::Okay(file_path) => println!("File path = {:?}", file_path),
29+
Response::OkayMultiple(files) => println!("Files {:?}", files),
2930
Response::Cancel => println!("User canceled"),
3031
}
3132
}
@@ -35,7 +36,7 @@ This crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports
3536
```rust
3637
extern crate nfd;
3738

38-
use nfd::Response
39+
use nfd::Response;
3940

4041
fn main() {
4142

@@ -44,6 +45,7 @@ This crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports
4445
});
4546

4647
match result {
48+
Response::Okay(file_path) => println!("File path = {:?}", file_path),
4749
Response::OkayMultiple(files) => println!("Files {:?}", files),
4850
Response::Cancel => println!("User canceled"),
4951
}

0 commit comments

Comments
 (0)