Skip to content

Commit ab832bf

Browse files
committed
feat: v2.0.4
1 parent c7eee95 commit ab832bf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lombok-macros"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ pub(crate) use syn::{
142142
///
143143
/// #[derive(Getter, Clone)]
144144
/// struct DerefStruct {
145-
/// #[get(pub, deref)]
146-
/// optional: Option<i32>,
145+
/// #[get(deref)]
146+
/// optional: Option<bool>,
147147
/// #[get(pub, deref)]
148148
/// result: Result<String, &'static str>,
149149
/// #[get(pub, deref)]
@@ -154,18 +154,18 @@ pub(crate) use syn::{
154154
/// arc_value: std::sync::Arc<Vec<u8>>,
155155
/// }
156156
/// let deref_struct = DerefStruct {
157-
/// optional: Some(42),
157+
/// optional: Some(true),
158158
/// result: Ok("success".to_string()),
159159
/// boxed_value: Box::new(100),
160160
/// rc_value: std::rc::Rc::new("test".to_string()),
161161
/// arc_value: std::sync::Arc::new(vec![1, 2, 3]),
162162
/// };
163-
/// let optional_value: i32 = deref_struct.get_optional();
163+
/// let optional_value: bool = deref_struct.get_optional();
164164
/// let result_value: String = deref_struct.get_result();
165165
/// let boxed_value: i32 = deref_struct.get_boxed_value();
166166
/// let rc_value: String = deref_struct.get_rc_value();
167167
/// let arc_value: Vec<u8> = deref_struct.get_arc_value();
168-
/// assert_eq!(optional_value, 42);
168+
/// assert_eq!(optional_value, true);
169169
/// assert_eq!(result_value, "success");
170170
/// assert_eq!(boxed_value, 100);
171171
/// assert_eq!(rc_value, "test");

0 commit comments

Comments
 (0)