From 6e223b54270740d35b4442700471a1992fef813f Mon Sep 17 00:00:00 2001 From: Aayush Atharva Date: Mon, 31 Aug 2020 12:29:27 +0530 Subject: [PATCH] Minor typo (#10518) Motivation: I was working on the transport part in Netty (ofc, solving a major issue) and I found this typo so thought to fix it. Modification: Fixed Typo Result: No more confusion between `us` and `use`. --- .../main/java/io/netty/channel/socket/nio/NioSocketChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java index f654bcf22f..01513fd2ea 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java @@ -359,7 +359,7 @@ public class NioSocketChannel extends AbstractNioByteChannel implements io.netty ByteBuffer[] nioBuffers = in.nioBuffers(1024, maxBytesPerGatheringWrite); int nioBufferCnt = in.nioBufferCount(); - // Always us nioBuffers() to workaround data-corruption. + // Always use nioBuffers() to workaround data-corruption. // See https://github.com/netty/netty/issues/2761 switch (nioBufferCnt) { case 0: