Skip to content

Commit 6ef0570

Browse files
committed
Remove outdated comment and hide variants of c_void
1 parent 3a407b6 commit 6ef0570

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/liblibc/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,15 @@ pub mod types {
191191
/// C. Use the unit type `()` or omit the return type instead.
192192
///
193193
/// For LLVM to recognize the void pointer type and by extension
194-
/// functions like malloc(), we need to have it represented as i8* in
195-
/// LLVM bitcode. The enum used here ensures this and prevents misuse
196-
/// of the "raw" type by only having private variants.. We need two
197-
/// variants, because the compiler complains about the repr attribute
198-
/// otherwise.
194+
/// functions like malloc(), we need to have it represented as i8*
195+
/// in LLVM bitcode. The enum used here ensures this. We need two
196+
/// variants, because the compiler complains about the `repr`
197+
/// attribute otherwise.
199198
#[repr(u8)]
200199
pub enum c_void {
200+
#[doc(hidden)]
201201
__variant1,
202+
#[doc(hidden)]
202203
__variant2,
203204
}
204205

0 commit comments

Comments
 (0)