Skip to content

Commit

Permalink
fix: fixed doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Jul 25, 2023
1 parent 269819b commit b533e73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions framework/src/derive_completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ use crate::{derive_filler, FillDerive};
/// ```
/// # extern crate proc_macro;
/// #
/// portrait_framework::proc_macro_filler!(foo, Generator);
/// portrait_framework::proc_macro_derive_filler!(foo, Generator);
/// struct Generator(portrait_framework::NoArgs);
/// impl portrait_framework::Generate for Generator {
/// impl portrait_framework::GenerateDerive for Generator {
/// fn generate_const(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::DeriveContext,
/// item: &syn::TraitItemConst,
/// ) -> syn::Result<syn::ImplItemConst> {
/// todo!()
/// }
/// fn generate_fn(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::DeriveContext,
/// item: &syn::TraitItemFn,
/// ) -> syn::Result<syn::ImplItemFn> {
/// todo!()
/// }
/// fn generate_type(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::DeriveContext,
/// item: &syn::TraitItemType,
/// ) -> syn::Result<syn::ImplItemType> {
/// todo!()
Expand All @@ -47,7 +47,7 @@ use crate::{derive_filler, FillDerive};
macro_rules! proc_macro_derive_filler {
($ident:ident, $generator:path) => {
pub fn $ident(input: ::proc_macro::TokenStream) -> ::proc_macro::TokenStream {
portrait_framework::completer_filler(input, $generator)
portrait_framework::completer_derive_filler(input, $generator)
}
};
}
Expand Down
12 changes: 6 additions & 6 deletions framework/src/impl_completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ use crate::{impl_filler, subtract_items, FillImpl};
/// ```
/// # extern crate proc_macro;
/// #
/// portrait_framework::proc_macro_filler!(foo, Generator);
/// portrait_framework::proc_macro_impl_filler!(foo, Generator);
/// struct Generator(portrait_framework::NoArgs);
/// impl portrait_framework::Generate for Generator {
/// impl portrait_framework::GenerateImpl for Generator {
/// fn generate_const(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::ImplContext,
/// item: &syn::TraitItemConst,
/// ) -> syn::Result<syn::ImplItemConst> {
/// todo!()
/// }
/// fn generate_fn(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::ImplContext,
/// item: &syn::TraitItemFn,
/// ) -> syn::Result<syn::ImplItemFn> {
/// todo!()
/// }
/// fn generate_type(
/// &mut self,
/// context: portrait_framework::Context,
/// context: portrait_framework::ImplContext,
/// item: &syn::TraitItemType,
/// ) -> syn::Result<syn::ImplItemType> {
/// todo!()
Expand All @@ -46,7 +46,7 @@ use crate::{impl_filler, subtract_items, FillImpl};
macro_rules! proc_macro_impl_filler {
($ident:ident, $generator:path) => {
pub fn $ident(input: ::proc_macro::TokenStream) -> ::proc_macro::TokenStream {
portrait_framework::completer_filler(input, $generator)
portrait_framework::completer_impl_filler(input, $generator)
}
};
}
Expand Down

0 comments on commit b533e73

Please sign in to comment.