Skip to content

Commit 1c4f554

Browse files
Add #[doc(hidden)] on a couple fns that take Private
We don't want these things to show up in our Rustdoc, since anything which takes `Private` is intended not to be called by users. PiperOrigin-RevId: 866057999
1 parent 5bde6e8 commit 1c4f554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl<K: MapKey, V: MapValue> Map<K, V> {
104104
Self { inner, _phantom: PhantomData }
105105
}
106106

107+
#[doc(hidden)]
107108
pub fn as_raw(&self, _: Private) -> RawMap {
108109
self.inner.raw
109110
}
@@ -284,6 +285,7 @@ pub struct MapMut<'msg, K: ?Sized, V: ?Sized> {
284285
}
285286

286287
impl<'msg, K: ?Sized, V: ?Sized> MapMut<'msg, K, V> {
288+
#[doc(hidden)]
287289
pub fn inner(&self, _: Private) -> InnerMapMut<'_> {
288290
self.inner
289291
}

0 commit comments

Comments
 (0)