From 8bc870a99abbf79ce2ea034d98bf913fc6ca4ae3 Mon Sep 17 00:00:00 2001 From: David Edey Date: Wed, 18 Dec 2024 00:51:31 +0000 Subject: [PATCH] docs: Simplified first example in readme --- README.md | 4 ---- src/lib.rs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/README.md b/README.md index 8351667..91f1843 100644 --- a/README.md +++ b/README.md @@ -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 - } )* } }} diff --git a/src/lib.rs b/src/lib.rs index 5a11717..63edeb0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 -//! } //! )* //! } //! }}