diff --git a/renderer/src/concurrent/executor.rs b/renderer/src/concurrent/executor.rs index e6b0932e..0ed50bae 100644 --- a/renderer/src/concurrent/executor.rs +++ b/renderer/src/concurrent/executor.rs @@ -14,7 +14,9 @@ pub trait Executor { /// Like the Rayon snippet: /// - /// (0..length).into_par_iter().flat_map(builder).collect() + /// ```norun + /// (0..length).into_par_iter().flat_map(builder).collect() + /// ``` fn flatten_into_vector(&self, length: usize, builder: F) -> Vec where T: Send, F: Fn(usize) -> Vec + Send + Sync; } diff --git a/renderer/src/concurrent/scene_proxy.rs b/renderer/src/concurrent/scene_proxy.rs index 075e25ce..861e7444 100644 --- a/renderer/src/concurrent/scene_proxy.rs +++ b/renderer/src/concurrent/scene_proxy.rs @@ -77,9 +77,11 @@ impl SceneProxy { /// /// Exactly equivalent to: /// - /// for command in scene_proxy.build_with_stream(options) { - /// renderer.render_command(&command) - /// } + /// ```norun + /// for command in scene_proxy.build_with_stream(options) { + /// renderer.render_command(&command) + /// } + /// ``` #[inline] pub fn build_and_render(&self, renderer: &mut Renderer, build_options: BuildOptions) where D: Device {