This is an automated email from the ASF dual-hosted git repository.
szehon-ho pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new de4eeda679 Docs: Fix invalid StructType.of call in Java API example
(#17408)
de4eeda679 is described below
commit de4eeda679a64455ee043d2a5db447af85d29426
Author: Uros Bojanic <[email protected]>
AuthorDate: Fri Jul 31 04:34:28 2026 +0200
Docs: Fix invalid StructType.of call in Java API example (#17408)
---
docs/docs/api.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/api.md b/docs/docs/api.md
index 9157dabb90..4452a70a32 100644
--- a/docs/docs/api.md
+++ b/docs/docs/api.md
@@ -170,7 +170,7 @@ Struct fields are created using `NestedField.optional` or
`NestedField.required`
```java
// struct<1 id: int, 2 data: optional string>
-StructType struct = Struct.of(
+StructType struct = StructType.of(
Types.NestedField.required(1, "id", Types.IntegerType.get()),
Types.NestedField.optional(2, "data", Types.StringType.get())
)