Skip to content

Commit

Permalink
Update 1.Kotlin_简介&变量&类&接口.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CharonChui authored Sep 5, 2023
1 parent 44f03d7 commit 65f31a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KotlinCourse/1.Kotlin_简介&变量&类&接口.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class Test{

fun main(){
// 如果 myService 对象还未初始化,则进行初始化
if(!this::myService.isInitialized){
if(!::myService.isInitialized){
println("hha")
myService = MyService()
}
Expand Down

0 comments on commit 65f31a3

Please sign in to comment.