From 2309c07e8e5182657faabdf163b3cb2f8210e912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20Sch=C3=A4fer=20M=2ESc=2E?= Date: Sun, 1 Dec 2024 21:09:09 +0100 Subject: [PATCH] Updated comment: ZIndex::Local(0) -> ZIndex(0). (#16585) # Objective In c5742ff43e13b942a5f7a5faecc3b9bf108709e1 ZIndex::Local() and ZIndex::Global() were replaced with ZIndex() and GlobalZIndex(). A comment was likely forgotten. ## Solution - Remove the deprecated "::Local" in the comment. --- examples/ui/z_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ui/z_index.rs b/examples/ui/z_index.rs index 14cf73fa7c..ae4fb22c52 100644 --- a/examples/ui/z_index.rs +++ b/examples/ui/z_index.rs @@ -20,7 +20,7 @@ fn setup(mut commands: Commands) { commands.spawn(Camera2d); // spawn the container with default z-index. - // the default z-index value is `ZIndex::Local(0)`. + // the default z-index value is `ZIndex(0)`. // because this is a root UI node, using local or global values will do the same thing. commands .spawn(Node {