Skip to content

Commit fdc2881

Browse files
hanggatheangrydev
andauthored
Update core-kotlin-modules/core-kotlin-10/src/test/kotlin/com/baeldung/variableshadowing/VariableShadowingUnitTest.kt
Co-authored-by: Liam Williams <[email protected]>
1 parent 6116b19 commit fdc2881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core-kotlin-modules/core-kotlin-10/src/test/kotlin/com/baeldung/variableshadowing/VariableShadowingUnitTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class VariableShadowingUnitTest{
1111
fun `test variable shadowing`() {
1212
val number = 10 // Top-level variable
1313

14-
fun upNumber() : Int { // top level function
15-
val number = 20 // shadowing top level variable
14+
fun upNumber() : Int { // top-level function
15+
val number = 20 // shadowing top-level variable
1616
return number
1717
}
1818

0 commit comments

Comments
 (0)