Skip to content

Commit c030aa5

Browse files
authored
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 <andersk@mit.edu>
1 parent 13769c2 commit c030aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/epaint/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ pub const WHITE_UV: emath::Pos2 = emath::pos2(0.0, 0.0);
6565

6666
/// What texture to use in a [`Mesh`] mesh.
6767
///
68-
/// If you don't want to use a texture, use `TextureId::Epaint(0)` and the [`WHITE_UV`] for uv-coord.
68+
/// If you don't want to use a texture, use `TextureId::Managed(0)` and the [`WHITE_UV`] for uv-coord.
6969
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
7070
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
7171
pub enum TextureId {
7272
/// Textures allocated using [`TextureManager`].
7373
///
74-
/// The first texture (`TextureId::Epaint(0)`) is used for the font data.
74+
/// The first texture (`TextureId::Managed(0)`) is used for the font data.
7575
Managed(u64),
7676

7777
/// Your own texture, defined in any which way you want.

0 commit comments

Comments
 (0)