Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 50d80a4

Browse files
committed
fix docs
1 parent a384218 commit 50d80a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

macros/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use syn::{Data, DeriveInput, Fields};
88
/// Macro that generates a new enum with only the discriminants of another enum within a module that implements swift_bridge.
99
///
1010
/// This is a workaround to create an error type compatible with swift that can be converted from the original error type.
11-
/// it implements From<OriginalEnum> so the idea is that you can call a swift ffi function `handle_error(err.into());``
11+
/// it implements `From<OriginalEnum>` so the idea is that you can call a swift ffi function `handle_error(err.into());`
1212
///
1313
/// This makes a lot of assumption about the types it's being implemented on since we're controling the type it is not meant
1414
/// to be a public macro. (However be careful if you reuse it somewhere else! this is based in strum's EnumDiscrminant so you can
@@ -87,6 +87,7 @@ fn swift_enum_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
8787
}
8888
}
8989
};
90+
9091
// If we wanted to expose this function we should have another crate that actually also includes
9192
// swift_bridge. but since we are only using this inside our crates we can just make sure we include it.
9293
Ok(quote! {

0 commit comments

Comments
 (0)