Open kpreid opened 2 years ago
Argh yeah… I’m not even sure it’s possible to substitute it :(
Use the #[doc]
syntax for doc comments (///
is sugar):
let doc_string = format!("Vertex attribute type (representing {}).", repr_ty_name);
quote! {
#[doc = #doc_string]
fn ...
}
The wrapper types generated by
#[derive(Semantics)]
have documentation text that is literallyinstead of substituting the type name as was presumably intended. Using
luminance-derive
version0.8.0
.