From 2266313f35b8cf69f9dfcf2c8833498f715d71ed Mon Sep 17 00:00:00 2001 From: Andy Zhu <36966801+azhuologist@users.noreply.github.com> Date: Mon, 17 Jun 2019 18:41:27 -0500 Subject: [PATCH] Code highlighting and capitalization fix for doc/EXCEPTIONS.md (#1283) * Mark NTSTATUS, HRESULT, and wil::unique_ptr as inline code snippets * Change encapsulate on line 14 to lower case to be consistent with the other rules --- doc/EXCEPTIONS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/EXCEPTIONS.md b/doc/EXCEPTIONS.md index e040f6d644..48a6017ede 100644 --- a/doc/EXCEPTIONS.md +++ b/doc/EXCEPTIONS.md @@ -10,11 +10,11 @@ exception use. ## Rules 1. **DO NOT** allow exceptions to leak out of new code into old code -1. **DO** use NTSTATUS or HRESULT as return values as appropriate (HRESULT is preferred) -1. **DO** Encapsulate all exception behaviors within implementing classes +1. **DO** use `NTSTATUS` or `HRESULT` as return values as appropriate (`HRESULT` is preferred) +1. **DO** encapsulate all exception behaviors within implementing classes 1. **DO NOT** introduce modern exception throwing code into old code. Instead, refactor as needed to allow encapsulation or use non-exception based code -1. **DO** use WIL as an alternative for non-throwing modern facilities (e.g. wil::unique_ptr<>) +1. **DO** use WIL as an alternative for non-throwing modern facilities (e.g. `wil::unique_ptr<>`) ## Examples