From 02499fdfd35144855846250abe6661f7b80c1f90 Mon Sep 17 00:00:00 2001 From: Paul-Sebastian Manole Date: Wed, 3 Jun 2020 19:10:07 +0300 Subject: [PATCH] chore: wrong path for call to `compile_protos` (#366) 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". --- examples/helloworld-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helloworld-tutorial.md b/examples/helloworld-tutorial.md index 87dea6f..1a5a379 100644 --- a/examples/helloworld-tutorial.md +++ b/examples/helloworld-tutorial.md @@ -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> { - tonic_build::compile_protos("proto/helloworld.proto")?; + tonic_build::compile_protos("src/proto/helloworld.proto")?; Ok(()) } ```