@@ -12,7 +12,7 @@ use std::ptr::NonNull;
12
12
///
13
13
/// - [crate::Lift] and [crate::Lower] are implemented on Rust types like String and user-defined records.
14
14
/// - [FfiSerialize] is implemented on the FFI types like RustBuffer, RustCallStatus, and vtable structs.
15
- /// - All 3 traits are implemented for simple cases where the FFI type and Rust type are the same, for example numeric types..
15
+ /// - All 3 traits are implemented for simple cases where the FFI type and Rust type are the same, for example numeric types.
16
16
/// - [FfiSerialize] uses u64 elements rather than u8 elements. This creates better alignment of the arguments at the cost of extra size.
17
17
/// - [FfiSerialize] uses a constant size to store each type.
18
18
///
@@ -29,13 +29,13 @@ pub trait FfiSerialize: Sized {
29
29
30
30
/// Get a value from a u64 buffer
31
31
///
32
- /// Note: buf should be thought of as &[u64: Self::SIZE], but it can't be spelled out that way
32
+ /// Note: ` buf` should be thought of as ` &[u64; Self::SIZE]` , but it can't be spelled out that way
33
33
/// since Rust doesn't support that usage of const generics yet.
34
34
fn get ( buf : & [ u64 ] ) -> Self ;
35
35
36
36
/// Put a value to a u64 buffer
37
37
///
38
- /// Note: buf should be thought of as &[u64: Self::SIZE], but it can't be spelled out that way
38
+ /// Note: ` buf` should be thought of as ` &[u64; Self::SIZE]` , but it can't be spelled out that way
39
39
/// since Rust doesn't support that usage of const generics yet.
40
40
fn put ( buf : & mut [ u64 ] , value : Self ) ;
41
41
0 commit comments