Fix doc test.

This commit is contained in:
Stephen Chung 2020-11-08 16:49:59 +08:00
parent 1e07e4356e
commit b926eba501

View File

@ -185,8 +185,11 @@ impl Module {
/// let mut module = Module::new(); /// let mut module = Module::new();
/// assert!(!module.is_indexed()); /// assert!(!module.is_indexed());
/// ///
/// # #[cfg(not(feature = "no_module"))]
/// # {
/// module.build_index(); /// module.build_index();
/// assert!(module.is_indexed()); /// assert!(module.is_indexed());
/// # }
/// ``` /// ```
pub fn is_indexed(&self) -> bool { pub fn is_indexed(&self) -> bool {
self.indexed self.indexed