From fd3d7083b0e82f5856c05d88d61ceb3cdb991c89 Mon Sep 17 00:00:00 2001 From: Jordan Neidlinger Date: Wed, 23 Sep 2015 13:12:40 -0700 Subject: [PATCH] [Typo] Fix typo in function definition rule 5 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index f28366f..946c67b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1816,7 +1816,7 @@ The compiler gives an error if a non-`constexpr` function is called where a cons ### F.5: If a function is very small and time critical, declare it `inline` -**Reason**: Some optimizers are good an inlining without hints from the programmer, but don't rely on it. +**Reason**: Some optimizers are good at inlining without hints from the programmer, but don't rely on it. Measure! Over the last 40 years or so, we have been promised compilers that can inline better than humans without hints from humans. We are still waiting. Specifying `inline` encourages the compiler to do a better job.