Repository: googleapis/gapic-generator-go
Pull request #1031 (2022-06-13 15:52:19)

chore(gengapic): fix typo on internal interface documentation


Patch:
diff --git a/.gitignore b/.gitignore
index 672d288..42c9623 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,4 @@ bazel-*
 
 # VS Code workspace
 *.code-workspace
+.vscode/
diff --git a/internal/gengapic/client_init.go b/internal/gengapic/client_init.go
index 51007be..25fe949 100644
--- a/internal/gengapic/client_init.go
+++ b/internal/gengapic/client_init.go
@@ -68,7 +68,7 @@ func (g *generator) clientOptions(serv *descriptor.ServiceDescriptorProto, servN
 func (g *generator) internalClientIntfInit(serv *descriptor.ServiceDescriptorProto, servName string) error {
 	p := g.printf
 
-	p("// internal%sClient is an interface that defines the methods availaible from %s.", servName, g.apiName)
+	p("// internal%sClient is an interface that defines the methods available from %s.", servName, g.apiName)
 	p("type internal%sClient interface {", servName)
 	p("Close() error")
 	p("setGoogleClientInfo(...string)")


Test patch:
diff --git a/internal/gengapic/testdata/custom_op_init.want b/internal/gengapic/testdata/custom_op_init.want
index a329862..87c49f3 100644
--- a/internal/gengapic/testdata/custom_op_init.want
+++ b/internal/gengapic/testdata/custom_op_init.want
@@ -1,4 +1,4 @@
-// internalClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalClient is an interface that defines the methods available from Awesome Foo API.
 type internalClient interface {
 	Close() error
 	setGoogleClientInfo(...string)
diff --git a/internal/gengapic/testdata/deprecated_client_init.want b/internal/gengapic/testdata/deprecated_client_init.want
index b429401..95c25ac 100644
--- a/internal/gengapic/testdata/deprecated_client_init.want
+++ b/internal/gengapic/testdata/deprecated_client_init.want
@@ -1,4 +1,4 @@
-// internalClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalClient is an interface that defines the methods available from Awesome Foo API.
 type internalClient interface {
 	Close() error
 	setGoogleClientInfo(...string)
diff --git a/internal/gengapic/testdata/empty_client_init.want b/internal/gengapic/testdata/empty_client_init.want
index fbde17b..e25b4d1 100644
--- a/internal/gengapic/testdata/empty_client_init.want
+++ b/internal/gengapic/testdata/empty_client_init.want
@@ -1,4 +1,4 @@
-// internalClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalClient is an interface that defines the methods available from Awesome Foo API.
 type internalClient interface {
 	Close() error
 	setGoogleClientInfo(...string)
diff --git a/internal/gengapic/testdata/foo_client_init.want b/internal/gengapic/testdata/foo_client_init.want
index 513f99b..5740a4a 100644
--- a/internal/gengapic/testdata/foo_client_init.want
+++ b/internal/gengapic/testdata/foo_client_init.want
@@ -1,4 +1,4 @@
-// internalFooClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalFooClient is an interface that defines the methods available from Awesome Foo API.
 type internalFooClient interface {
 	Close() error
 	setGoogleClientInfo(...string)
diff --git a/internal/gengapic/testdata/foo_rest_client_init.want b/internal/gengapic/testdata/foo_rest_client_init.want
index bde2ad3..ca0ab80 100644
--- a/internal/gengapic/testdata/foo_rest_client_init.want
+++ b/internal/gengapic/testdata/foo_rest_client_init.want
@@ -1,4 +1,4 @@
-// internalFooClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalFooClient is an interface that defines the methods available from Awesome Foo API.
 type internalFooClient interface {
 	Close() error
 	setGoogleClientInfo(...string)
diff --git a/internal/gengapic/testdata/lro_client_init.want b/internal/gengapic/testdata/lro_client_init.want
index 3a2134b..0e28eeb 100644
--- a/internal/gengapic/testdata/lro_client_init.want
+++ b/internal/gengapic/testdata/lro_client_init.want
@@ -1,4 +1,4 @@
-// internalFooClient is an interface that defines the methods availaible from Awesome Foo API.
+// internalFooClient is an interface that defines the methods available from Awesome Foo API.
 type internalFooClient interface {
 	Close() error
 	setGoogleClientInfo(...string)