Skip to content

Commit e866089

Browse files
authored
Update Readme (#115)
1 parent adac2cd commit e866089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ A Rust equivalent of Unix command "which". Locate installed executable in cross
1616

1717
This project aims to support WebAssembly with the [WASI](https://wasi.dev/) extension. All `wasm32-wasi*` targets are officially supported.
1818

19-
If you need to add a conditional dependency on `which` please refer to [the relevant cargo documentation for platform specific dependencies.](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies)
19+
If you need to add a conditional dependency on `which` please refer to [the relevant Cargo documentation for platform specific dependencies.](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies)
2020

2121
Here's an example of how to conditionally add `which`. You should tweak this to your needs.
2222

2323
```toml
2424
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
25-
which = "7.0.0"
25+
which = "8.0.0"
2626
```
2727

2828
Note that non-WASI environments have no access to the system. Using this in that situation requires disabling the default features of this crate and providing a custom `which::sys::Sys` implementation to `which::WhichConfig`.
@@ -38,7 +38,7 @@ Note that non-WASI environments have no access to the system. Using this in that
3838
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
3939
```
4040

41-
2. After enabling the `regex` feature, find all cargo subcommand executables on the path:
41+
2. After enabling the `regex` feature, find all Cargo subcommand executables on the path:
4242

4343
``` rust
4444
use which::which_re;

0 commit comments

Comments
 (0)