mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 18:11:39 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user