Skip to content

Commit 42a460e

Browse files
committed
use more idiomatic module structure for example in message.rs comment
1 parent 2d4ffc7 commit 42a460e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

capnp/src/message.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@
4646
//! `crate::test_data::simple_struct::Owned` type into [TypedReader]/[TypedBuilder]
4747
//!
4848
//! ```ignore
49-
//! include!(concat!(env!("OUT_DIR"), "/simple_struct_capnp.rs"));
49+
//! mod simple_struct_capnp {
50+
//! include!(concat!(env!("OUT_DIR"), "/simple_struct_capnp.rs"));
51+
//! }
5052
//!
5153
//! use capnp::message::{self, TypedBuilder, TypedReader};
54+
//! use simple_struct_capnp::simple_struct;
5255
//!
5356
//! fn main() {
5457
//! let mut builder = TypedBuilder::<simple_struct::Owned>::new_default();

0 commit comments

Comments
 (0)