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
This commit is contained in:
Andy Zhu 2019-06-17 18:41:27 -05:00 committed by msftbot[bot]
parent 37126d015a
commit 2266313f35
1 changed files with 3 additions and 3 deletions

View File

@ -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