Fix wrong comment in BLI_findstringindex (returns 0-based index!).

This commit is contained in:
Bastien Montagne 2017-05-22 16:13:33 +02:00
parent f5a9f150dc
commit 81667b770c
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ void *BLI_rfindptr(const ListBase *listbase, const void *ptr, const int offset)
}
/**
* Returns the 1-based index of the first element of listbase which contains the specified
* Returns the 0-based index of the first element of listbase which contains the specified
* null-terminated string at the specified offset, or -1 if not found.
*/
int BLI_findstringindex(const ListBase *listbase, const char *id, const int offset)