You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by pv...@apache.org on 2022/06/30 12:30:50 UTC

[iceberg] branch master updated: API: Fix typo Canout to Cannot (#5164)

This is an automated email from the ASF dual-hosted git repository.

pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fca5e50ce API: Fix typo Canout to Cannot (#5164)
3fca5e50ce is described below

commit 3fca5e50cec4158ee58202822581948e42c98655
Author: BQ <bq...@gmail.com>
AuthorDate: Thu Jun 30 20:30:44 2022 +0800

    API: Fix typo Canout to Cannot (#5164)
---
 api/src/main/java/org/apache/iceberg/util/ByteBuffers.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/src/main/java/org/apache/iceberg/util/ByteBuffers.java b/api/src/main/java/org/apache/iceberg/util/ByteBuffers.java
index 4a5001018d..4451a262be 100644
--- a/api/src/main/java/org/apache/iceberg/util/ByteBuffers.java
+++ b/api/src/main/java/org/apache/iceberg/util/ByteBuffers.java
@@ -51,7 +51,7 @@ public class ByteBuffers {
     Preconditions.checkArgument(reuse.hasArray(), "Cannot reuse a buffer not backed by an array");
     Preconditions.checkArgument(reuse.arrayOffset() == 0, "Cannot reuse a buffer whose array offset is not 0");
     Preconditions.checkArgument(reuse.capacity() == length,
-        "Canout use a buffer whose capacity (%s) is not equal to the requested length (%s)", length, reuse.capacity());
+        "Cannot use a buffer whose capacity (%s) is not equal to the requested length (%s)", length, reuse.capacity());
     reuse.position(0);
     reuse.limit(length);
     return reuse;