From c643438753a43f556b48cd2025bcfad37d73f3ec Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Sat, 6 Feb 2021 16:38:17 +0800 Subject: [PATCH] lang: Don't build example docs code --- lang/attribute/access-control/src/lib.rs | 3 +-- lang/attribute/error/src/lib.rs | 2 +- lang/derive/accounts/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lang/attribute/access-control/src/lib.rs b/lang/attribute/access-control/src/lib.rs index 845f5be4..f53af1a0 100644 --- a/lang/attribute/access-control/src/lib.rs +++ b/lang/attribute/access-control/src/lib.rs @@ -9,7 +9,7 @@ use syn::parse_macro_input; /// /// # Example /// -/// ``` +/// ```ignore /// use anchor_lang::prelude::*; /// /// #[program] @@ -37,7 +37,6 @@ use syn::parse_macro_input; /// Ok(()) /// } /// } -/// ... /// ``` /// /// This example demonstrates a useful pattern. Not only can you use diff --git a/lang/attribute/error/src/lib.rs b/lang/attribute/error/src/lib.rs index 520228f5..cc4e4c2a 100644 --- a/lang/attribute/error/src/lib.rs +++ b/lang/attribute/error/src/lib.rs @@ -13,7 +13,7 @@ use syn::parse_macro_input; /// /// # Example /// -/// ``` +/// ```ignore /// use anchor_lang::prelude::*; /// /// #[program] diff --git a/lang/derive/accounts/src/lib.rs b/lang/derive/accounts/src/lib.rs index 17517c19..834abba7 100644 --- a/lang/derive/accounts/src/lib.rs +++ b/lang/derive/accounts/src/lib.rs @@ -11,7 +11,7 @@ use syn::parse_macro_input; /// /// # Example /// -/// ``` +/// ```ignore /// #[derive(Accounts)] /// pub struct Auth<'info> { /// #[account(mut, has_one = authority)]