Skip to content

Commit

Permalink
chore: wrong path for call to compile_protos (hyperium#366)
Browse files Browse the repository at this point in the history
Fixed wrong path "proto/helloworld.proto" for `compile_protos` first argument. `build.rs` being in the project root, means the correct path should be "src/proto/helloworld.proto".
  • Loading branch information
brokenthorn authored Jun 3, 2020
1 parent 253984f commit 02499fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/helloworld-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ At the root of your crate, create a `build.rs` file and add the following code:

```rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("proto/helloworld.proto")?;
tonic_build::compile_protos("src/proto/helloworld.proto")?;
Ok(())
}
```
Expand Down

0 comments on commit 02499fd

Please sign in to comment.