Skip to content

Commit 1e79521

Browse files
committed
docs: fix usage examples to use t-strings for command execution
1 parent 76ad09c commit 1e79521

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ assert await sh(t"wc -l", input="1\n2\n3\n").json() == 3
7575
### Capture the stdout, stderr of a program
7676

7777
```py
78-
result = await sh("help").output()
78+
result = await sh(t"help").output()
7979
result.returncode
8080
result.stdout
8181
result.stderr

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ assert await sh(t"wc -l", input="1\n2\n3\n").json() == 3
7575
### Capture the stdout, stderr of a program
7676

7777
```py
78-
result = await sh("help").output()
78+
result = await sh(t"help").output()
7979
result.returncode
8080
result.stdout
8181
result.stderr

0 commit comments

Comments
 (0)