Skip to content

Commit 2375743

Browse files
committed
Auto merge of #27931 - tbu-:pr_liblibc_void, r=alexcrichton
2 parents 54b2ece + 6ef0570 commit 2375743

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/liblibc/lib.rs

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

0 commit comments

Comments
 (0)