diff --git a/doc/scripting/data_struct_record_01.bro b/doc/scripting/data_struct_record_01.bro index a80d30faae..ab28501f96 100644 --- a/doc/scripting/data_struct_record_01.bro +++ b/doc/scripting/data_struct_record_01.bro @@ -4,7 +4,7 @@ type Service: record { rfc: count; }; -function print_service(serv: Service): string +function print_service(serv: Service) { print fmt("Service: %s(RFC%d)",serv$name, serv$rfc); diff --git a/doc/scripting/data_struct_record_02.bro b/doc/scripting/data_struct_record_02.bro index b10b3feac0..515c8a716c 100644 --- a/doc/scripting/data_struct_record_02.bro +++ b/doc/scripting/data_struct_record_02.bro @@ -9,7 +9,7 @@ type System: record { services: set[Service]; }; -function print_service(serv: Service): string +function print_service(serv: Service) { print fmt(" Service: %s(RFC%d)",serv$name, serv$rfc); @@ -17,7 +17,7 @@ function print_service(serv: Service): string print fmt(" port: %s", p); } -function print_system(sys: System): string +function print_system(sys: System) { print fmt("System: %s", sys$name);