summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() }
//!# }
//!# }
//!```