Skip to content

Commit d6c05fd

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 ad62f2f commit d6c05fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class VariableShadowingUnitTest{
2424
val speed: Int = 100
2525

2626
fun upSpeed() : Int {
27-
val speed = speed * 2 // Shadowing class member -> speed
27+
val speed = speed * 2 // Shadowing class member named 'speed'
2828
return speed
2929
}
3030
}

0 commit comments

Comments
 (0)