1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 14:27:51 +02:00

[Kotlin/all] Remove whitespace in variable declaration with explicit type (#2733)

* Removed whitespace in variable declaration with explicit type (Kotlin)

* Removed whitespace in variable declaration with explicit type (Kotlin translations)
This commit is contained in:
João Vitor Verona Biazibetti
2017-05-19 18:34:27 -03:00
committed by ven
parent 81a388747a
commit d30d6f69ca
5 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ fun main(args: Array<String>) {
de tal manera que no tenemos que especificarlo explícitamente cada vez. de tal manera que no tenemos que especificarlo explícitamente cada vez.
    Podemos declarar explícitamente el tipo de una variable así:     Podemos declarar explícitamente el tipo de una variable así:
*/ */
val foo : Int = 7 val foo: Int = 7
/* /*
Las cadenas pueden ser representadas de la misma manera que Java. Las cadenas pueden ser representadas de la misma manera que Java.

View File

@@ -37,7 +37,7 @@ fun main(args: Array<String>) {
대부분의 경우, Kotlin 에서는 변수 타입을 판단할 수 있기때문에 명시적으로 지정해 주지 않을 수 있습니다. 대부분의 경우, Kotlin 에서는 변수 타입을 판단할 수 있기때문에 명시적으로 지정해 주지 않을 수 있습니다.
다음과 같이 변수의 타입을 명시적으로 지정할 수 있습니다. 다음과 같이 변수의 타입을 명시적으로 지정할 수 있습니다.
*/ */
val foo : Int = 7 val foo: Int = 7
/* /*
문자형은 Java와 비슷하게 표시될 수 있습니다. 문자형은 Java와 비슷하게 표시될 수 있습니다.

View File

@@ -36,7 +36,7 @@ fun main(args: Array<String>) {
so we don't have to explicitly specify it every time. so we don't have to explicitly specify it every time.
We can explicitly declare the type of a variable like so: We can explicitly declare the type of a variable like so:
*/ */
val foo : Int = 7 val foo: Int = 7
/* /*
Strings can be represented in a similar way as in Java. Strings can be represented in a similar way as in Java.

View File

@@ -37,7 +37,7 @@ fun main(args: Array<String>) {
В большинстве случаев Kotlin самостоятельно может определить тип переменной, поэтому нам не нужно явно указывать его каждый раз. В большинстве случаев Kotlin самостоятельно может определить тип переменной, поэтому нам не нужно явно указывать его каждый раз.
Мы можем явно объявить тип переменной следующим образом: Мы можем явно объявить тип переменной следующим образом:
*/ */
val foo : Int = 7 val foo: Int = 7
/* /*
Строки могут быть представлены тем же образом, что и в Java. Строки могут быть представлены тем же образом, что и в Java.

View File

@@ -38,7 +38,7 @@ fun main(args: Array<String>) {
所以我们不必要每次都去明确指定它。 所以我们不必要每次都去明确指定它。
我们可以像这样明确地声明一个变量的类型: 我们可以像这样明确地声明一个变量的类型:
*/ */
val foo : Int = 7 val foo: Int = 7
/* /*
可以采取和Java类似的方法来表示一个字符串。 可以采取和Java类似的方法来表示一个字符串。