mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: match, <<=, >>=, |=, ~, unsafe, map init
This commit is contained in:
@@ -688,7 +688,7 @@ pub fn (s string) count(substr string) int {
|
||||
}
|
||||
|
||||
pub fn (s string) contains(p string) bool {
|
||||
_ = s.index(p) or {
|
||||
s.index(p) or {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user