From c030aa5df222c776f31b9b408f99ea81eef5a8ff Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 22 May 2023 11:37:26 -0700 Subject: [PATCH] Fix documentation for TextureId::Managed(0) (#2998) TextureId::Epaint was renamed to TextureId::Managed during the development of #1110. Update the documentation to match. Signed-off-by: Anders Kaseorg --- crates/epaint/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/epaint/src/lib.rs b/crates/epaint/src/lib.rs index 924547d2..82fc7e0f 100644 --- a/crates/epaint/src/lib.rs +++ b/crates/epaint/src/lib.rs @@ -65,13 +65,13 @@ pub const WHITE_UV: emath::Pos2 = emath::pos2(0.0, 0.0); /// What texture to use in a [`Mesh`] mesh. /// -/// If you don't want to use a texture, use `TextureId::Epaint(0)` and the [`WHITE_UV`] for uv-coord. +/// If you don't want to use a texture, use `TextureId::Managed(0)` and the [`WHITE_UV`] for uv-coord. #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub enum TextureId { /// Textures allocated using [`TextureManager`]. /// - /// The first texture (`TextureId::Epaint(0)`) is used for the font data. + /// The first texture (`TextureId::Managed(0)`) is used for the font data. Managed(u64), /// Your own texture, defined in any which way you want.