Skip to content

Commit 6794874

Browse files
committed
update comment
1 parent 38545b1 commit 6794874

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
@@ -102,7 +102,7 @@ class VariableShadowingUnitTest{
102102
}
103103

104104
fun upSpeed() : Int {
105-
return this.speed * 2
105+
return this.speed * 2 // Use the outer speed directly with this keyword
106106
}
107107
}
108108

0 commit comments

Comments
 (0)