@@ -2332,7 +2332,7 @@ Function definition rules:
2332
2332
* [F.3: Keep functions short and simple](#Rf-single)
2333
2333
* [F.4: If a function might have to be evaluated at compile time, declare it `constexpr`](#Rf-constexpr)
2334
2334
* [F.5: If a function is very small and time-critical, declare it inline](#Rf-inline)
2335
- * [F.6: If your function mightnot throw, declare it `noexcept`](#Rf-noexcept)
2335
+ * [F.6: If your function might not throw, declare it `noexcept`](#Rf-noexcept)
2336
2336
* [F.7: For general use, take `T*` or `T&` arguments rather than smart pointers](#Rf-smart)
2337
2337
* [F.8: Prefer pure functions](#Rf-pure)
2338
2338
* [F.9: Unused parameters should be unnamed](#Rf-unused)
@@ -2581,7 +2581,7 @@ Small simple functions are easily inlined where the cost of a function call is s
2581
2581
* Flag functions that are too complex. How complex is too complex?
2582
2582
You could use cyclomatic complexity. Try "more than 10 logical path through." Count a simple switch as one path.
2583
2583
2584
- ### <a name="Rf-constexpr"></a>F.4: If a function mighthave to be evaluated at compile time, declare it `constexpr`
2584
+ ### <a name="Rf-constexpr"></a>F.4: If a function might have to be evaluated at compile time, declare it `constexpr`
2585
2585
2586
2586
##### Reason
2587
2587
@@ -2625,7 +2625,7 @@ Most computation is best done at run time.
2625
2625
2626
2626
##### Note
2627
2627
2628
- Any API that mighteventually depend on high-level run-time configuration or
2628
+ Any API that might eventually depend on high-level run-time configuration or
2629
2629
business logic should not be made `constexpr`. Such customization can not be
2630
2630
evaluated by the compiler, and any `constexpr` functions that depended upon
2631
2631
that API would have to be refactored or drop `constexpr`.
@@ -4799,7 +4799,7 @@ For resources represented as classes with a complete set of default operations,
4799
4799
##### Example
4800
4800
4801
4801
class X {
4802
- ifstream f; // mightown a file
4802
+ ifstream f; // might own a file
4803
4803
// ... no default operations defined or =deleted ...
4804
4804
};
4805
4805
0 commit comments