Fix incorrect comment in code (#11029)

Motivation:
Comment on method is outdated / incorrect.

Modification:
Adjust comment

Result:
Correct docs
This commit is contained in:
吴迪 2021-02-19 15:07:23 +08:00 committed by Norman Maurer
parent dbee8c9b89
commit 5e0617e49e

View File

@ -152,7 +152,7 @@ final class PoolThreadCache {
}
/**
* Try to allocate a small buffer out of the cache. Returns {@code true} if successful {@code false} otherwise
* Try to allocate a normal buffer out of the cache. Returns {@code true} if successful {@code false} otherwise
*/
boolean allocateNormal(PoolArena<?> area, PooledByteBuf<?> buf, int reqCapacity, int sizeIdx) {
return allocate(cacheForNormal(area, sizeIdx), buf, reqCapacity);