microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 791 forks source link

Documentation typo: malloc(count, size) = malloc(p, count * size) #866

Closed mcourteaux closed 3 months ago

mcourteaux commented 3 months ago

https://github.com/microsoft/mimalloc/blob/db52999d8567c628154fcb002cf636bc1c1697d9/doc/mimalloc-doc.h#L171

Obviously, this first p parameter should not be there. This looks like a copy-paste bug from realloc documentation.

daanx commented 3 months ago

Thanks !