summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-04-22 00:09:24 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-04-22 00:09:24 -0400
commit169b843911b9a3953bdbc7af2c55f797f9c485da (patch)
tree7147d263df35904d258048e0272486dd3ab546ea
parentd942f87c6168919551970f860da46b9ddd5fbea7 (diff)
downloadget-169b843911b9a3953bdbc7af2c55f797f9c485da.tar.gz
fixup
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e6a9f15..b7dcda1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,9 +11,9 @@
//! struct Crab {
//! name: String,
//! age: u64,
-//! // Sometimes we may not need a getter, such as on a public field.
+//! // Sometimes we may not want to provide access to a field at all.
//! #[get(hide)]
-//! pub friend: Option<Box<Crab>>
+//! secrets: String
//! }
//!
//! fn crab() {
@@ -27,7 +27,7 @@
//!
//!# impl Crab {
//!# pub fn new(name: &str, age: u64) -> Self {
-//!# Self { name: name.to_string(), age, friend: None}
+//!# Self { name: name.to_string(), age, secrets: "crab secrets".to_string() }
//!# }
//!# }
//!```