1
Fork 0

doc: reduce indentation of examples to 4 spaces

Also, add trailing commas
This commit is contained in:
Tshepang Lekhonkhobe 2015-09-03 22:06:23 +02:00
parent 1661947014
commit 355847f5c1

View file

@ -102,13 +102,13 @@
//! //!
//! struct Owner { //! struct Owner {
//! name: String, //! name: String,
//! gadgets: RefCell<Vec<Weak<Gadget>>> //! gadgets: RefCell<Vec<Weak<Gadget>>>,
//! // ...other fields //! // ...other fields
//! } //! }
//! //!
//! struct Gadget { //! struct Gadget {
//! id: i32, //! id: i32,
//! owner: Rc<Owner> //! owner: Rc<Owner>,
//! // ...other fields //! // ...other fields
//! } //! }
//! //!
@ -119,7 +119,7 @@
//! let gadget_owner : Rc<Owner> = Rc::new( //! let gadget_owner : Rc<Owner> = Rc::new(
//! Owner { //! Owner {
//! name: "Gadget Man".to_string(), //! name: "Gadget Man".to_string(),
//! gadgets: RefCell::new(Vec::new()) //! gadgets: RefCell::new(Vec::new()),
//! } //! }
//! ); //! );
//! //!