You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed the following limitations, which I'd like to report:
the content after the first //! block is missing
#![doc = include_str(...)] is not included
It looks like the parser only considers the first block of lines starting with //! and stops at the first line that doesn't start with //!.
Minimal Reproducible Example
This is src/lib.rs:
//! start of document//!//! # Examples//!//! ```rust,no_run#![doc = include_str!("../examples/hello.rs")]//! ```//!//! end of documentpubfnhello(){println!("hello");}
This is examples/hello.rs:
fnmain(){
hello::hello();}
The stuff after the first //! block is missing, i.e. neither the hello.rs example code, nor the end of document bit:
I've noticed the following limitations, which I'd like to report:
//!
block is missing#![doc = include_str(...)]
is not includedIt looks like the parser only considers the first block of lines starting with
//!
and stops at the first line that doesn't start with//!
.Minimal Reproducible Example
This is
src/lib.rs
:This is
examples/hello.rs
:The stuff after the first
//!
block is missing, i.e. neither thehello.rs
example code, nor the end of document bit:The text was updated successfully, but these errors were encountered: