Skip to content

Commit

Permalink
Fix example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Jan 15, 2024
1 parent a5426ca commit 2d9aaa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ std::cout << url.href() << '\n'; // https://example.com/?id=1
Convert filesystem path to file URL:
```cpp
try {
auto url = upa::url_from_file_path("/home/opa/file.txt");
auto url = upa::url_from_file_path("/home/opa/file.txt", upa::file_path_format::posix);
std::cout << url.href() << '\n'; // file:///home/opa/file.txt
}
catch (const std::exception& ex) {
Expand Down

0 comments on commit 2d9aaa6

Please sign in to comment.