Skip to content

Commit 74fedc8

Browse files
joseph-giogeieredgar
authored andcommitted
make a note private
1 parent 8f1a221 commit 74fedc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/bevy_utils/src/intern.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ use crate::HashSet;
2222
/// # Implementation details
2323
///
2424
/// This is just a reference to a value with an `'static` lifetime.
25-
///
26-
/// This implements [`Copy`], [`Clone`], [`PartialEq`], [`Eq`] and [`Hash`] regardles of what `T`
27-
/// implements, because it only uses the pointer to the value and not the value itself.
28-
/// Therefore it MUST NEVER implement [`Borrow`](`std::borrow::Borrow`).
25+
//
26+
// This implements [`Copy`], [`Clone`], [`PartialEq`], [`Eq`] and [`Hash`] regardles of what `T`
27+
// implements, because it only uses the pointer to the value and not the value itself.
28+
// Therefore it MUST NEVER implement [`Borrow`](`std::borrow::Borrow`).
2929
pub struct Interned<T: ?Sized + 'static>(&'static T);
3030

3131
impl<T: ?Sized> Deref for Interned<T> {

0 commit comments

Comments
 (0)