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

parser: do not allow "int?", only "?int"

This commit is contained in:
Alexander Medvednikov
2019-09-23 23:17:06 +03:00
parent f27f3515ae
commit d2d75f3824
6 changed files with 10 additions and 17 deletions

View File

@ -206,7 +206,7 @@ pub fn dial(address string, port int) ?Socket {
}
// send string data to socket
pub fn (s Socket) send(buf byteptr, len int) int? {
pub fn (s Socket) send(buf byteptr, len int) ?int {
res := int( C.send(s.sockfd, buf, len, 0) )
if res < 0 {
return error('socket: send failed')