Skip to content

Commit

Permalink
Merge pull request #1804 from Skepfyr/update-meta-doc
Browse files Browse the repository at this point in the history
Update the rustdoc example to match best practice
  • Loading branch information
marioidival authored Jan 22, 2024
2 parents 0214ba6 + 2ae29bd commit a6bc33b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/meta/doc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Documentation

Use `cargo doc` to build documentation in `target/doc`.
Use `cargo doc` to build documentation in `target/doc`, `cargo doc --open`
will automatically open it in your web browser.

Use `cargo test` to run all tests (including documentation tests), and `cargo
test --doc` to only run documentation tests.
Expand All @@ -23,11 +24,7 @@ pub struct Person {
}
impl Person {
/// Returns a person with the name given them
///
/// # Arguments
///
/// * `name` - A string slice that holds the name of the person
/// Creates a person with the given name.
///
/// # Examples
///
Expand Down

0 comments on commit a6bc33b

Please sign in to comment.