Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: tools/gn/function_foreach.cc

Issue 1841013003: Update GN documentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/docs/style_guide.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_foreach.cc
diff --git a/tools/gn/function_foreach.cc b/tools/gn/function_foreach.cc
index 504fa6c737a39bd7e384ae09485bbbe4a5de75db..549ebe407c1ec93287922ab29ecb5ab9c22baa54 100644
--- a/tools/gn/function_foreach.cc
+++ b/tools/gn/function_foreach.cc
@@ -20,7 +20,8 @@ const char kForEach_Help[] =
" }\n"
"\n"
" Executes the loop contents block over each item in the list,\n"
- " assigning the loop_var to each item in sequence.\n"
+ " assigning the loop_var to each item in sequence. The loop_var will be\n"
+ " a copy so assigning to it will not mutate the list.\n"
"\n"
" The block does not introduce a new scope, so that variable assignments\n"
" inside the loop will be visible once the loop terminates.\n"
« no previous file with comments | « tools/gn/docs/style_guide.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698