Skip to content

Commit

Permalink
lang: Don't build example docs code
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Feb 6, 2021
1 parent bffba39 commit ad1987e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lang/attribute/access-control/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use syn::parse_macro_input;
///
/// # Example
///
/// ```
/// ```ignore
/// use anchor_lang::prelude::*;
///
/// #[program]
Expand Down Expand Up @@ -37,7 +37,6 @@ use syn::parse_macro_input;
/// Ok(())
/// }
/// }
/// ...
/// ```
///
/// This example demonstrates a useful pattern. Not only can you use
Expand Down
2 changes: 1 addition & 1 deletion lang/attribute/error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use syn::parse_macro_input;
///
/// # Example
///
/// ```
/// ```ignore
/// use anchor_lang::prelude::*;
///
/// #[program]
Expand Down
2 changes: 1 addition & 1 deletion lang/derive/accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use syn::parse_macro_input;
///
/// # Example
///
/// ```
/// ```ignore
/// #[derive(Accounts)]
/// pub struct Auth<'info> {
/// #[account(mut, has_one = authority)]
Expand Down

0 comments on commit ad1987e

Please sign in to comment.