From beb1817b3cbeea52aadfc54b4956c6499d39a7a6 Mon Sep 17 00:00:00 2001 From: Yike Du Date: Sun, 7 Aug 2022 18:05:06 +0800 Subject: [PATCH] Fix setting env problem --- src/ch12-05-working-with-environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch12-05-working-with-environment-variables.md b/src/ch12-05-working-with-environment-variables.md index c50498a..e17546c 100644 --- a/src/ch12-05-working-with-environment-variables.md +++ b/src/ch12-05-working-with-environment-variables.md @@ -97,7 +97,7 @@ PS> $Env:CASE_INSENSITIVE=1; cargo run to poem.txt 这回应该得到包含可能有大写字母的 “to” 的行: ```console -$ CASE_INSENSITIVE=1 cargo run to poem.txt +$ (CASE_INSENSITIVE=1; cargo run to poem.txt) Finished dev [unoptimized + debuginfo] target(s) in 0.0s Running `target/debug/minigrep to poem.txt` Are you nobody, too?