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

all: change .ReturnType and .Type to .return_type and .typ (#6494)

This commit is contained in:
Daniel Däschle
2020-09-28 06:13:38 +02:00
committed by GitHub
parent 71e1ca72ec
commit 06cade6c31
8 changed files with 29 additions and 29 deletions

View File

@@ -372,7 +372,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
mut vars := []string{cap: route_words_a.len}
mut action := ''
$for method in T.methods {
$if method.ReturnType is Result {
$if method.return_type is Result {
attrs := method.attrs
route_words_a = [][]string{}
if attrs.len == 0 {
@@ -473,7 +473,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
return
}
$for method in T.methods {
$if method.ReturnType is Result {
$if method.return_type is Result {
// search again for method
if action == method.name && method.attrs.len > 0 {
// call action method