Corrected example code for PHYSFS_enumerate in physfs.h

(transplanted from d3929e6603725b968df778618204ca6c3869b446)
This commit is contained in:
Ryan C. Gordon 2019-08-24 21:06:54 -04:00
parent f5458fbc6c
commit 0e38afca9b
1 changed files with 2 additions and 2 deletions

View File

@ -2702,10 +2702,10 @@ typedef PHYSFS_EnumerateCallbackResult (*PHYSFS_EnumerateCallback)(void *data,
*
* \code
*
* static int printDir(void *data, const char *origdir, const char *fname)
* static PHYSFS_EnumerateCallbackResult printDir(void *data, const char *origdir, const char *fname)
* {
* printf(" * We've got [%s] in [%s].\n", fname, origdir);
* return 1; // give me more data, please.
* return PHYSFS_ENUM_OK; // give me more data, please.
* }
*
* // ...