Skip to content

Commit

Permalink
doc(uniffi-bindgen): Improve a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Feb 13, 2023
1 parent e42febf commit 926135a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uniffi_bindgen/src/bindings/kotlin/gen_kotlin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,10 @@ pub mod filters {
Ok(oracle().ffi_type_label(type_))
}

/// Get the type that a type is lowered into. This is subtly different than `type_ffi`, see
/// #1106 for details
/// Get the type that a type is lowered into. This is subtly different than `type_ffi`.
///
/// For example, if we need to pre-allocate a Kotlin value that will store
/// an FFI lowered value, this method is your friend.
pub fn type_ffi_lowered(ffi_type: &FfiType) -> Result<String, askama::Error> {
Ok(match ffi_type {
FfiType::Int8 => "Byte".into(),
Expand Down

0 comments on commit 926135a

Please sign in to comment.