Skip to content

Commit 4b07693

Browse files
bendkjplatte
andauthored
Update docs/adr/0009-uniffi-tagging.md
Co-authored-by: Jonas Platte <[email protected]>
1 parent 6d02cd1 commit 4b07693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/adr/0009-uniffi-tagging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The code in `uniffi_macros::setup_scaffolding` generates a zero-sized `crate::Un
1111
For example, when lowering a type we use `<#type as Lower<crate::UniffiTag>>::lower`.
1212

1313
The reason for this is the so-called "Orphan rule", which prevents generated code from implemented a remote trait on a remote type.
14-
If the FFI traits did not have a generic parameter, then it would be impossible to generate an code that implements those traits for a type defined in another crate.
14+
If the FFI traits did not have a generic parameter, then it would be impossible to generate code that implements those traits for a type defined in another crate.
1515
See [ADR-0006 Wrapping types](./0006-wrapping-types.md) for more discussion.
1616

1717
For local types we have a choice: implement only for the local tag (`impl Lift<crate::UniffiTag> for MyType`) or implement it for all tags (`impl<UT> Lift<UT> for MyType)`).

0 commit comments

Comments
 (0)