diff --git a/macros/src/lib.rs b/macros/src/lib.rs index a7dd1c5..d765549 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -8,7 +8,7 @@ use syn::{Data, DeriveInput, Fields}; /// Macro that generates a new enum with only the discriminants of another enum within a module that implements swift_bridge. /// /// This is a workaround to create an error type compatible with swift that can be converted from the original error type. -/// it implements From so the idea is that you can call a swift ffi function `handle_error(err.into());`` +/// it implements `From` so the idea is that you can call a swift ffi function `handle_error(err.into());` /// /// This makes a lot of assumption about the types it's being implemented on since we're controling the type it is not meant /// 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 { } } }; + // If we wanted to expose this function we should have another crate that actually also includes // swift_bridge. but since we are only using this inside our crates we can just make sure we include it. Ok(quote! {