Corrected example code for PHYSFS_enumerate in physfs.h stable-3.0
authorRyan C. Gordon <icculus@icculus.org>
Sat, 24 Aug 2019 21:06:54 -0400
branchstable-3.0
changeset 1675 6b4a6dd92948
parent 1670 de1ea3b2cfc4
child 1677 f17e8358de41
Corrected example code for PHYSFS_enumerate in physfs.h (transplanted from d3929e6603725b968df778618204ca6c3869b446)
src/physfs.h
--- a/src/physfs.h	Mon May 20 23:38:12 2019 -0400
+++ b/src/physfs.h	Sat Aug 24 21:06:54 2019 -0400
@@ -2702,10 +2702,10 @@
  *
  * \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.
  * }
  *
  * // ...