Skip to content

Commit 1d861c9

Browse files
neunenakcasey
andauthored
Apply suggestions from code review
Co-authored-by: Casey Rodarmor <casey@rodarmor.com>
1 parent a27d30b commit 1d861c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ change their behavior.
21582158
| `[confirm(PROMPT)]`<sup>1.23.0</sup> | recipe | Require confirmation prior to executing recipe with a custom prompt. |
21592159
| `[default]`<sup>1.43.0</sup> | recipe | Use recipe as module's default recipe. |
21602160
| `[doc(DOC)]`<sup>1.27.0</sup> | module, recipe | Set recipe or module's [documentation comment](#documentation-comments) to `DOC`. |
2161-
| `[env(ENV_VAR, VALUE)]` <sup>1.44</sup> | recipe | Set env vars that apply only to this recipe. |
2161+
| `[env(ENV_VAR, VALUE)]` <sup>master</sup> | recipe | Set env vars that apply only to this recipe. |
21622162
| `[extension(EXT)]`<sup>1.32.0</sup> | recipe | Set shebang recipe script's file extension to `EXT`. `EXT` should include a period if one is desired. |
21632163
| `[group(NAME)]`<sup>1.27.0</sup> | module, recipe | Put recipe or module in in [group](#groups) `NAME`. |
21642164
| `[linux]`<sup>1.8.0</sup> | recipe | Enable recipe on Linux. |
@@ -2538,7 +2538,7 @@ test $RUST_BACKTRACE="1":
25382538
cargo test
25392539
```
25402540

2541-
Or you can use the `[env(env_var, value)]` attribute to set environment variables that
2541+
You can also use the `[env(NAME, VALUE)]` attribute to export environment variables to a specific recipe:
25422542
apply only to this recipe:
25432543

25442544
```just

tests/attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn env_attribute_multiple() {
356356
}
357357

358358
#[test]
359-
fn env_attribute_1_arg() {
359+
fn env_attribute_too_few_arguments() {
360360
Test::new()
361361
.justfile(
362362
"
@@ -379,7 +379,7 @@ fn env_attribute_1_arg() {
379379
}
380380

381381
#[test]
382-
fn env_attribute_3_args() {
382+
fn env_attribute_too_many_arguments() {
383383
Test::new()
384384
.justfile(
385385
"

0 commit comments

Comments
 (0)