//Publishing a Crate to Crates.io //Making Useful Documentation Comments
//Commenting Contained Items //! # cargo_and_crateio //! //! `cargo_and_crateio` is a collection of utilities to make performing certain //! calculations more convenient.
/// Adds one to the number given. /// /// # Examples /// /// ``` /// let arg = 5; /// let answer = cargo_and_crateio::add_one(arg); /// /// assert_eq!(6, answer); /// ``` pubfnadd_one(x: i32) ->i32 { x + 1 } //cargo doc //run rustdoc tool to generate HTML documentation from the comments. (in the target/doc directory) //cargo doc --open //open documentation in browser