Index: tools/gn/docs/reference.md |
diff --git a/tools/gn/docs/reference.md b/tools/gn/docs/reference.md |
index f136a97b336024b47e16124c5f22d67bc6f65e93..70cc6b3a65b675d06f0451c73a6ecd153321570b 100644 |
--- a/tools/gn/docs/reference.md |
+++ b/tools/gn/docs/reference.md |
@@ -682,10 +682,29 @@ |
``` |
## **gn help <anything>** |
+ |
``` |
Yo dawg, I heard you like help on your help so I put help on the help |
in the help. |
+ You can also use "all" as the parameter to get all help at once. |
+ |
+``` |
+ |
+### **Switches** |
+ |
+``` |
+ --markdown |
+ Format output in markdown syntax. |
+ |
+``` |
+ |
+### **Example** |
+ |
+``` |
+ gn help --markdown all |
+ Dump all help to stdout in markdown format. |
+ |
``` |
## **gn ls <out_dir> [<label_pattern>] [\--all-toolchains] [\--as=...]** |
@@ -1592,7 +1611,8 @@ |
} |
Executes the loop contents block over each item in the list, |
- assigning the loop_var to each item in sequence. |
+ assigning the loop_var to each item in sequence. The loop_var will be |
+ a copy so assigning to it will not mutate the list. |
The block does not introduce a new scope, so that variable assignments |
inside the loop will be visible once the loop terminates. |