Skip to content

doc: fix n-api example string

Rodrigo Muino Tomonari requested to merge github/fork/srl295/napi-typo into master
  • using a length of 6 for "hello" includes a terminating null yielding "hello\u0000"
  • length of 5 would work, but comparing to the N-API docs gives NAPI_AUTO_LENGTH instead
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading