Skip to content

Commit

Permalink
fix doc for my_env signature
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Dec 15, 2023
1 parent e01d2a3 commit 3114a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ using `#define NVBENCH_ENVIRONMENT`.
```cpp
struct my_env {
my_env(int, char const*) {
my_env(int, char const* const*) {
printf("setup\n");
}
~my_env() {
Expand All @@ -454,7 +454,7 @@ struct my_env {

The `NVBENCH_ENVIRONMENT` must be defined before including `nvbench.cuh`.

The `(int, char const*)` parameters are the `argc, argv` variables passed through
The `(int, char const* const*)` parameters are the `argc, argv` variables passed through
from the command line invocation.

Note this feature is only usable if you call `NVBENCH_MAIN` directly and not
Expand Down

0 comments on commit 3114a42

Please sign in to comment.