Skip to content

Commit

Permalink
chore: change wording around code example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfontanini committed Jul 29, 2024
1 parent a8bb9b6 commit 01cb49f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions examples/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,21 @@ fn main() {

<!-- end_slide -->

Code execution
Snippet execution
===

Run commands from the presentation and display their output dynamically.
Run code snippets from the presentation and display their output dynamically.

```bash +exec
for i in $(seq 1 5)
do
echo "hi $i"
sleep 0.5
done
```python +exec
/// import time
for i in range(0, 5):
print(f"count is {i}")
time.sleep(0.5)
```

<!-- end_slide -->

Code execution - `stderr`
Snippet execution - `stderr`
===

Output from `stderr` will also be shown as output.
Expand All @@ -106,4 +105,4 @@ sleep 0.5
echo "This is a successful command again"
sleep 0.5
man # Missing argument
```
```

0 comments on commit 01cb49f

Please sign in to comment.