mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: highlight terminal examples for -comments -color (#13937)
This commit is contained in:
@@ -1098,6 +1098,7 @@ pub fn (s string) count(substr string) int {
|
||||
}
|
||||
|
||||
// contains returns `true` if the string contains `substr`.
|
||||
// See also: [`string.index`](#string.index)
|
||||
pub fn (s string) contains(substr string) bool {
|
||||
if substr.len == 0 {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user