You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by kk...@apache.org on 2020/03/29 01:41:19 UTC

[kafka] branch 2.1 updated: MINOR: Fix code example reference to SchemaBuilder call in Connect's documentation (#3029)

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

kkarantasis pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new ea759dc  MINOR: Fix code example reference to SchemaBuilder call in Connect's documentation (#3029)
ea759dc is described below

commit ea759dc40d4bcff06a9f4376d77ebd66369ab045
Author: Scott <sm...@users.noreply.github.com>
AuthorDate: Sat Mar 28 21:34:07 2020 -0400

    MINOR: Fix code example reference to SchemaBuilder call in Connect's documentation (#3029)
    
    Simple doc fix in a code snippet in connect.html
    
    Co-authored-by: Scott Ferguson <sm...@gmail.com>
    
    Reviewers: Ewen Cheslack-Postava <me...@ewencp.org>, Konstantine Karantasis <ko...@confluent.io>
---
 docs/connect.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/connect.html b/docs/connect.html
index baefc1b..1f30da4 100644
--- a/docs/connect.html
+++ b/docs/connect.html
@@ -487,7 +487,7 @@
     Schema schema = SchemaBuilder.struct().name(NAME)
         .field("name", Schema.STRING_SCHEMA)
         .field("age", Schema.INT_SCHEMA)
-        .field("admin", new SchemaBuilder.boolean().defaultValue(false).build())
+        .field("admin", SchemaBuilder.bool().defaultValue(false).build())
         .build();
 
     Struct struct = new Struct(schema)