1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: s.contains(s2) instead of in

This commit is contained in:
Alexander Medvednikov
2021-03-23 11:38:56 +03:00
parent b5c286256c
commit 0c055a1ce9
7 changed files with 13 additions and 14 deletions

View File

@@ -66,7 +66,7 @@ fn parse_request_line(s string) ?(http.Method, urllib.URL, http.Version) {
}
fn parse_header(s string) ?(string, string) {
if ':' !in s {
if !s.contains(':') {
return error('missing colon in header')
}
words := s.split_nth(':', 2)