Updated comment: ZIndex::Local(0) -> ZIndex(0). (#16585)

# Objective

In c5742ff43e ZIndex::Local() and
ZIndex::Global() were replaced with ZIndex() and GlobalZIndex().

A comment was likely forgotten.

## Solution

- Remove the deprecated "::Local" in the comment.
This commit is contained in:
Armin Schäfer M.Sc. 2024-12-01 21:09:09 +01:00 committed by GitHub
parent 39842170a5
commit 2309c07e8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {