summaryrefslogtreecommitdiff
path: root/CPP_STYLE_GUIDE.md
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-13 22:13:52 -0700
committerRich Trott <rtrott@gmail.com>2019-10-15 06:39:52 -0700
commited5eaa0495fb54f3a29c39d0d4eefd5e258f5b05 (patch)
tree00b66589027ea1ce8d5b72a723818d2959e5dcaf /CPP_STYLE_GUIDE.md
parent6afed1dc853cf2b040502d858caadc17575a7fdf (diff)
downloadandroid-node-v8-ed5eaa0495fb54f3a29c39d0d4eefd5e258f5b05.tar.gz
android-node-v8-ed5eaa0495fb54f3a29c39d0d4eefd5e258f5b05.tar.bz2
android-node-v8-ed5eaa0495fb54f3a29c39d0d4eefd5e258f5b05.zip
doc: prepare miscellaneous docs for new markdown lint rules
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: https://github.com/nodejs/node/pull/29963 Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'CPP_STYLE_GUIDE.md')
-rw-r--r--CPP_STYLE_GUIDE.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP_STYLE_GUIDE.md b/CPP_STYLE_GUIDE.md
index 30a2ec99fa..8808405b2c 100644
--- a/CPP_STYLE_GUIDE.md
+++ b/CPP_STYLE_GUIDE.md
@@ -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:
@@ -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`