From 7f2fa52ad5090b23515f4c3e925542a39db927bb Mon Sep 17 00:00:00 2001 From: SpoogieOogie Date: Fri, 12 Jan 2024 16:18:34 +0100 Subject: [PATCH] update broken doclinks to reflect feature changes --- src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0b2c4b2..39a9bfd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,8 +45,7 @@ //! ``` //! //! We can also use [`NoiseBuffer`] for efficiently filling n-dimensional arrays -//! with noise, and [`Visualizer`] to get a visual representation of a given -//! generator. The above generator produces the following image, when sampled for +//! with noise. The above generator produces the following image, when sampled for //! every pixel position: //! //! ![image](https://raw.githubusercontent.com/cookiephone/libnoise-rs/master/images/doc_image_000_f7049b4.png) @@ -55,6 +54,11 @@ //! produce space-time noise such as: //! //! ![image](https://raw.githubusercontent.com/cookiephone/libnoise-rs/master/images/doc_image_001_f7049b4.gif) +//! +#![cfg_attr( + feature = "image", + doc = "[`Visualizer`] allows us to get such a visual representation of a given generator when using the `image` feature." +)] mod core; pub mod prelude;