Skip to content

Commit 80882bc

Browse files
szedergitster
authored andcommitted
api-parse-options.txt: fix description of OPT_CMDMODE
The description of the 'OPT_CMDMODE' macro states that "enum_val is set to int_var when ...", but it's the other way around, 'int_var' is set to 'enum_val'. Fix this. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c1b117d commit 80882bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/technical/api-parse-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ There are some macros to easily define options:
236236
`OPT_CMDMODE(short, long, &int_var, description, enum_val)`::
237237
Define an "operation mode" option, only one of which in the same
238238
group of "operating mode" options that share the same `int_var`
239-
can be given by the user. `enum_val` is set to `int_var` when the
239+
can be given by the user. `int_var` is set to `enum_val` when the
240240
option is used, but an error is reported if other "operating mode"
241241
option has already set its value to the same `int_var`.
242242

0 commit comments

Comments
 (0)