Just fixing some comments.

This commit is contained in:
Myrddin Dundragon 2017-04-06 17:28:02 -04:00
parent ae902d1508
commit 8efb6fedff

View File

@ -53,12 +53,12 @@ pub type CDouble = f64;
// Void types. // Void types.
/// To return void from a 'C' function it should return an empty tuple (). /// To return void from a 'C' function it should return an empty tuple ().
/// This type is just a descriptive version of that. **DO NOT** use this /// This type is just a descriptive version of that. **DO NOT** use this
/// as an argument to a function. Use the c_void type for that. /// as an argument to a function. Use the CVoid type for that.
pub type CReturnVoid = (); pub type CReturnVoid = ();
/// This acts as a 'C' void pointer to pass to functions. **DO NOT** /// This acts as a 'C' void pointer to pass to functions. **DO NOT**
/// use this as a return type from a 'C' function. If a 'C' function /// use this as a return type from a 'C' function. If a 'C' function
/// returns void, then use the c_return_void type for that. /// returns void, then use the CReturnVoid type for that.
#[repr(u8)] #[repr(u8)]
pub enum CVoid pub enum CVoid
{ {