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:
@ -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')
|
||||
|
Reference in New Issue
Block a user