Просмотр исходного кода

Corrected example code in the docs (thanks, Olivier!).

Ryan C. Gordon 17 лет назад
Родитель
Сommit
2f3ba7602b
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      CHANGELOG.txt
  2. 1 1
      physfs.h

+ 2 - 1
CHANGELOG.txt

@@ -3,7 +3,8 @@
  */
 
 11022008 - iPhone support (thanks, Christian!). Added struct typedefs that
-           are friendlier to predeclaring.
+           are friendlier to predeclaring and fixed example in docs (thanks,
+           Olivier!).
 04032008 - Fixed PHYSFS_openAppend() to work as documented on Unix.
 03122008 - Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
 03102008 - Changed some text files from ISO-8859-1 to UTF-8. Replaced all the

+ 1 - 1
physfs.h

@@ -531,7 +531,7 @@ __EXPORT__ int PHYSFS_deinit(void);
  * for (i = PHYSFS_supportedArchiveTypes(); *i != NULL; i++)
  * {
  *     printf("Supported archive: [%s], which is [%s].\n",
- *              i->extension, i->description);
+ *              (*i)->extension, (*i)->description);
  * }
  * \endcode
  *