From d11cd6345229f1c2e0352e164bcbc0491c7cc319 Mon Sep 17 00:00:00 2001 From: Linden Krouse Date: Mon, 17 Jan 2022 20:44:22 +0000 Subject: [PATCH] Fixed doc comment with render Node input/output methods (#3642) Fixed doc comment where render Node input/output methods refered to using `RenderContext` for interaction instead of `RenderGraphContext` # Objective The doc comments for `Node` refer to `RenderContext` for slots instead of `RenderGraphContext`, which is only confusing because `Node::run` is passed both `RenderContext` and `RenderGraphContext` ## Solution Fixed the typo --- crates/bevy_render/src/render_graph/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_render/src/render_graph/node.rs b/crates/bevy_render/src/render_graph/node.rs index 5c8c6ce39b..eaaead9b03 100644 --- a/crates/bevy_render/src/render_graph/node.rs +++ b/crates/bevy_render/src/render_graph/node.rs @@ -43,13 +43,13 @@ impl NodeId { /// inside the graph. For more information see [`SlotType`](super::SlotType). pub trait Node: Downcast + Send + Sync + 'static { /// Specifies the required input slots for this node. - /// They will then be available during the run method inside the [`RenderContext`]. + /// They will then be available during the run method inside the [`RenderGraphContext`]. fn input(&self) -> Vec { Vec::new() } /// Specifies the produced output slots for this node. - /// They can then be passed one inside [`RenderContext`] during the run method. + /// They can then be passed one inside [`RenderGraphContext`] during the run method. fn output(&self) -> Vec { Vec::new() }