Remove repeated section and make file path generic
This commit is contained in:
parent
6b26aaea3e
commit
48c0f596a7
@ -2754,19 +2754,9 @@ mod hello {
|
||||
|
||||
This will work:
|
||||
|
||||
```{notrust,ignore}
|
||||
$ cargo build
|
||||
Compiling modules v0.0.1 (file:///home/you/projects/modules)
|
||||
$
|
||||
```
|
||||
|
||||
Before we move on, let me show you one more Cargo command: `run`. `cargo run`
|
||||
is kind of like `cargo build`, but it also then runs the produced exectuable.
|
||||
Try it out:
|
||||
|
||||
```{notrust,ignore}
|
||||
$ cargo run
|
||||
Compiling modules v0.0.1 (file:///home/steve/tmp/modules)
|
||||
Compiling modules v0.0.1 (file:///home/you/projects/modules)
|
||||
Running `target/modules`
|
||||
Hello, world!
|
||||
$
|
||||
|
Loading…
Reference in New Issue
Block a user