From 6d4a4ea528181188c31383475dfac3ef282ea8a2 Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Sun, 24 Nov 2024 16:49:49 +0300 Subject: [PATCH] fixed docs --- fyrox-graph/src/constructor.rs | 6 +++--- fyrox-ui/src/widget.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fyrox-graph/src/constructor.rs b/fyrox-graph/src/constructor.rs index 9985d6b6b..03eddac1c 100644 --- a/fyrox-graph/src/constructor.rs +++ b/fyrox-graph/src/constructor.rs @@ -68,7 +68,7 @@ pub struct GraphNodeConstructor { pub default: Constructor, /// A set of node constructors that returns specific variants of the same node type. Could be - /// used to pre-define specific variations of nodes, for example a [`Mesh`] node could have + /// used to pre-define specific variations of nodes, for example a `Mesh` node could have /// different surfaces (sphere, cube, cone, etc.). It is used by the editor, this collection must /// have at least one item to be shown in the editor. pub variants: Vec>, @@ -97,13 +97,13 @@ impl GraphNodeConstructor { } } - /// Sets a desired group for the constructor. See [`NodeTrait::constructor`] docs for examples. + /// Sets a desired group for the constructor. pub fn with_group(mut self, group: &'static str) -> Self { self.group = group; self } - /// Adds a new constructor variant. See [`NodeTrait::constructor`] docs for examples. + /// Adds a new constructor variant. pub fn with_variant(mut self, name: impl AsRef, variant: F) -> Self where F: Fn(&mut Ctx) -> VariantResult + Send + Sync + 'static, diff --git a/fyrox-ui/src/widget.rs b/fyrox-ui/src/widget.rs index df6e0b8cd..9f25497cf 100644 --- a/fyrox-ui/src/widget.rs +++ b/fyrox-ui/src/widget.rs @@ -716,7 +716,7 @@ impl WidgetMessage { ); define_constructor!( - /// Creates [`MenuItemMessage::Sort`] message. + /// Creates [`WidgetMessage::SortChildren`] message. WidgetMessage:SortChildren => fn sort_children(SortingPredicate), layout: false ); }