don't run doc code

This commit is contained in:
Sebastian Köln 2019-07-16 13:53:03 +03:00
parent d3b7d9c0aa
commit 47e77f2513
2 changed files with 8 additions and 4 deletions

View File

@ -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<T, F>(&self, length: usize, builder: F) -> Vec<T>
where T: Send, F: Fn(usize) -> Vec<T> + Send + Sync;
}

View File

@ -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<D>(&self, renderer: &mut Renderer<D>, build_options: BuildOptions)
where D: Device {