Skip to content
Permalink
Browse files

Struct pointer references use -> instead of dot

This seems like a documentation bug. I cannot see how this can be correct in its current form.
  • Loading branch information...
szaydel authored and Snaipe committed Feb 16, 2019
1 parent cee1a47 commit 7776281368edda9f842e0375a6013837aa8eef8e
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/parameterized.rst
@@ -70,7 +70,7 @@ easily use a struct to hold the context as a workaround:
}

ParameterizedTest(struct my_params *param, suite_name, test_name) {
// access param.param0, param.param1, ...
// access param->param0, param->param1, ...
}
C++ users can also use a simpler syntax before returning an array of parameters:

0 comments on commit 7776281

Please sign in to comment.
You can’t perform that action at this time.