From 759e7a7fec9de0b62798198b9f3bc3f26d8b0681 Mon Sep 17 00:00:00 2001 From: Chengyuan Zhang Date: Tue, 26 Mar 2019 14:37:36 -0700 Subject: [PATCH] examples/kotlin: fix typo in HelloWorld example (#5505) --- .../main/kotlin/io/grpc/examples/helloworld/HelloWorldClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example-kotlin/src/main/kotlin/io/grpc/examples/helloworld/HelloWorldClient.kt b/examples/example-kotlin/src/main/kotlin/io/grpc/examples/helloworld/HelloWorldClient.kt index 783aca6179..5ed679a800 100644 --- a/examples/example-kotlin/src/main/kotlin/io/grpc/examples/helloworld/HelloWorldClient.kt +++ b/examples/example-kotlin/src/main/kotlin/io/grpc/examples/helloworld/HelloWorldClient.kt @@ -73,7 +73,7 @@ internal constructor(private val channel: ManagedChannel) { val client = HelloWorldClient("localhost", 50051) try { /* Access a service running on the local machine on port 50051 */ - val user = if (args.size > 0) "world" else "world" + val user = if (args.size > 0) "${args[0]}" else "world" client.greet(user) } finally { client.shutdown()