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 GitHub
parent fe041e8e43
commit 329dae1ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) { boolean allocateNormal(PoolArena<?> area, PooledByteBuf<?> buf, int reqCapacity, int sizeIdx) {
return allocate(cacheForNormal(area, sizeIdx), buf, reqCapacity); return allocate(cacheForNormal(area, sizeIdx), buf, reqCapacity);