Fix doctest
This commit is contained in:
@@ -5,23 +5,23 @@
|
|||||||
//! Simple
|
//! Simple
|
||||||
//!
|
//!
|
||||||
//! ```rust,no_run
|
//! ```rust,no_run
|
||||||
//! fn main() {
|
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! tonic_build::compile_protos("proto/service.proto").unwrap();
|
//! tonic_build::compile_protos("proto/service.proto")?;
|
||||||
|
//! Ok(())
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Configuration
|
//! Configuration
|
||||||
//!
|
//!
|
||||||
//! ```rust,no_run
|
//! ```rust,no_run
|
||||||
//! fn main() {
|
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! tonic_build::configure()
|
//! tonic_build::configure()
|
||||||
//! .build_server(false)
|
//! .build_server(false)
|
||||||
//! .compile(
|
//! .compile(
|
||||||
//! &["proto/helloworld/helloworld.proto"],
|
//! &["proto/helloworld/helloworld.proto"],
|
||||||
//! &["proto/helloworld"],
|
//! &["proto/helloworld"],
|
||||||
//! "helloworld",
|
//! )?;
|
||||||
//! )
|
//! Ok(())
|
||||||
//! .unwrap();
|
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user