Skip to content

Commit db2f148

Browse files
committed
fix: Correct remaining example runs
1 parent c55c10b commit db2f148

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

text/3502-cargo-script.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ Let's run it
127127
```console
128128
$ chmod +x hello_world.rs
129129
$ ./hello_world.rs
130+
warning: `package.edition` is unspecified, defaulting to `2021`
131+
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
132+
Running `/home/epage/.cargo/target/98/07dcd6510bdcec/debug/hello_world`
130133
Hello, world!
131134
```
132135

@@ -185,7 +188,8 @@ fn main() {
185188

186189
You can then re-run this and Cargo will fetch the new dependencies and all of their dependencies. You can see this by passing in `--verbose`:
187190
```console
188-
$ cargo eval --verbose ./hello_world.rs
191+
$ cargo --verbose ./hello_world.rs
192+
warning: `package.edition` is unspecified, defaulting to `2021`
189193
Updating crates.io index
190194
Downloading memchr v0.1.5
191195
Downloading libc v0.1.10
@@ -200,6 +204,8 @@ $ cargo eval --verbose ./hello_world.rs
200204
Compiling aho-corasick v0.3.0
201205
Compiling regex v0.1.41
202206
Compiling hello_world v0.1.0 (file:///path/to/package/hello_world)
207+
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
208+
Running `/home/epage/.cargo/target/98/07dcd6510bdcec/debug/hello_world`
203209
Did our date match? true
204210
```
205211

0 commit comments

Comments
 (0)