changed documentation to make example compile

The former example from the documentation did not compile, with the change it does.

See https://godbolt.org/z/zYxfTWjYW

Merge request reports

Loading