From 169b843911b9a3953bdbc7af2c55f797f9c485da Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 22 Apr 2023 00:09:24 -0400 Subject: fixup --- src/lib.rs | 6 +++--- 1 file 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> +//! 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() } //!# } //!# } //!``` -- cgit v1.2.3