Skip to content

Commit 0403bcd

Browse files
bendkbadboy
andauthored
Apply suggestions from code review
Co-authored-by: Jan-Erik Rediger <[email protected]>
1 parent 2dcd78a commit 0403bcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

uniffi_core/src/ffi/ffiserialize.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::ptr::NonNull;
1212
///
1313
/// - [crate::Lift] and [crate::Lower] are implemented on Rust types like String and user-defined records.
1414
/// - [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.
1616
/// - [FfiSerialize] uses u64 elements rather than u8 elements. This creates better alignment of the arguments at the cost of extra size.
1717
/// - [FfiSerialize] uses a constant size to store each type.
1818
///
@@ -29,13 +29,13 @@ pub trait FfiSerialize: Sized {
2929

3030
/// Get a value from a u64 buffer
3131
///
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
3333
/// since Rust doesn't support that usage of const generics yet.
3434
fn get(buf: &[u64]) -> Self;
3535

3636
/// Put a value to a u64 buffer
3737
///
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
3939
/// since Rust doesn't support that usage of const generics yet.
4040
fn put(buf: &mut [u64], value: Self);
4141

0 commit comments

Comments
 (0)