Skip to content

Commit

Permalink
doc: prepare miscellaneous docs for new markdown lint rules
Browse files Browse the repository at this point in the history
Prepare the final few documents that haven't been updated to always use
`[]` with reference links and to escape `[` and `]` for things that
aren't links in markdown files.

PR-URL: #29963
Reviewed-By: Masashi Hirano <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
Trott committed Oct 15, 2019
1 parent 6afed1d commit ed5eaa0
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 143 deletions.
8 changes: 4 additions & 4 deletions CPP_STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ Use explicit comparisons to `nullptr` when testing pointers, i.e.

### Ownership and Smart Pointers

* [R.20]: Use `std::unique_ptr` or `std::shared_ptr` to represent ownership
* [R.21]: Prefer `unique_ptr` over `shared_ptr` unless you need to share
* [R.20][]: Use `std::unique_ptr` or `std::shared_ptr` to represent ownership
* [R.21][]: Prefer `unique_ptr` over `shared_ptr` unless you need to share
ownership

Use `std::unique_ptr` to make ownership transfer explicit. For example:
Expand Down Expand Up @@ -286,8 +286,8 @@ data[0] = 12345;

Further reading:

* [ES.48]: Avoid casts
* [ES.49]: If you must use a cast, use a named cast
* [ES.48][]: Avoid casts
* [ES.49][]: If you must use a cast, use a named cast

### Using `auto`

Expand Down
2 changes: 1 addition & 1 deletion benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The common.js module is used by benchmarks for consistency across repeated
tasks. It has a number of helpful functions and properties to help with
writing benchmarks.

### createBenchmark(fn, configs[, options])
### createBenchmark(fn, configs\[, options\])

See [the guide on writing benchmarks](../doc/guides/writing-and-running-benchmarks.md#basics-of-a-benchmark).

Expand Down
Loading

0 comments on commit ed5eaa0

Please sign in to comment.