Doc fix verifier example code for cpp (#8664)

This commit is contained in:
Felix
2025-08-06 22:53:44 +02:00
committed by GitHub
parent 1759061908
commit ff9cba2bff

View File

@@ -419,7 +419,8 @@ Each root type will have a verification function generated for it,
e.g. for `Monster`, you can call:
```cpp
bool ok = VerifyMonsterBuffer(Verifier(buf, len));
Verifier verifier(buf, len);
bool ok = VerifyMonsterBuffer(verifier);
```
if `ok` is true, the buffer is safe to read.