Skip to content

Commit b73ba44

Browse files
Yu-zhbobzhang
authored andcommitted
tweak
1 parent 77a4481 commit b73ba44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

string/string.mbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ pub fn index_of(self : String, str : String, from~ : Int = 0) -> Int {
386386
break
387387
}
388388
} else {
389+
// the substring is found
389390
return i
390391
}
391392
}

0 commit comments

Comments
 (0)