From e9f03ddd5b7f98e4c858233f61ddd8769484c902 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 7 Jun 2020 23:39:56 -0700 Subject: [PATCH] Remove the term 'blacklist' from an example in the coding style guide --- docs/codebase/code-style.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/codebase/code-style.md b/docs/codebase/code-style.md index 7e6b2402..e8fc479d 100644 --- a/docs/codebase/code-style.md +++ b/docs/codebase/code-style.md @@ -2535,10 +2535,10 @@ auto x_plus_n = [&x](int n) -> int { return x + n; } Short lambdas may be written inline as function arguments. ```c++ -std::set blacklist = {7, 8, 9}; +std::set skip_list = {7, 8, 9}; std::vector digits = {3, 9, 1, 8, 4, 7, 1}; -digits.erase(std::remove_if(digits.begin(), digits.end(), [&blacklist](int i) { - return blacklist.find(i) != blacklist.end(); +digits.erase(std::remove_if(digits.begin(), digits.end(), [&skip_list](int i) { + return skip_list.find(i) != skip_list.end(); }), digits.end()); ```