Skip to content

Commit

Permalink
docs: Simplified first example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Dec 18, 2024
1 parent da9262d commit 8bc870a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ macro_rules! create_my_type {
fn [!ident_snake! my_ $inner_type](&self) -> &$inner_type {
&self.$field_name
}

fn [!ident_snake! my_ $inner_type _mut](&mut self) -> &mut $inner_type {
&mut self.$field_name
}
)*
}
}}
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
//! fn [!ident_snake! my_ $inner_type](&self) -> &$inner_type {
//! &self.$field_name
//! }
//!
//! fn [!ident_snake! my_ $inner_type _mut](&mut self) -> &mut $inner_type {
//! &mut self.$field_name
//! }
//! )*
//! }
//! }}
Expand Down

0 comments on commit 8bc870a

Please sign in to comment.