Skip to content

Commit 522b37b

Browse files
authored
Fix drift in MessageFramer comment (grpc#8427)
1 parent b0b2500 commit 522b37b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/io/grpc/internal/MessageFramer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private static int writeToOutputStream(InputStream message, OutputStream outputS
267267
return ((Drainable) message).drainTo(outputStream);
268268
} else {
269269
// This makes an unnecessary copy of the bytes when bytebuf supports array(). However, we
270-
// expect performance-critical code to support flushTo().
270+
// expect performance-critical code to support drainTo().
271271
@SuppressWarnings("BetaApi") // ByteStreams is not Beta in v27
272272
long written = ByteStreams.copy(message, outputStream);
273273
checkArgument(written <= Integer.MAX_VALUE, "Message size overflow: %s", written);

0 commit comments

Comments
 (0)