examples/kotlin: fix typo in HelloWorld example (#5505)

This commit is contained in:
Chengyuan Zhang 2019-03-26 14:37:36 -07:00 committed by GitHub
parent 8e41f6e43b
commit 759e7a7fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()