From d2379001f263365941a21df97d5aba4e5a317218 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Tue, 15 Nov 2022 02:28:05 -0800 Subject: [PATCH] reformat variadic --- _examples/variadic/variadic.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_examples/variadic/variadic.go b/_examples/variadic/variadic.go index 113ddf4..9ed5dd7 100644 --- a/_examples/variadic/variadic.go +++ b/_examples/variadic/variadic.go @@ -4,7 +4,7 @@ package variadic -/////////////// Non Variadic ////////////// +// ///////////// Non Variadic ////////////// func NonVariFunc(arg1 int, arg2 []int, arg3 int) int { total := arg1 for _, num := range arg2 { @@ -15,7 +15,7 @@ func NonVariFunc(arg1 int, arg2 []int, arg3 int) int { return total } -/////////////// Variadic Over Int ////////////// +// ///////////// Variadic Over Int ////////////// func VariFunc(vargs ...int) int { total := 0 for _, num := range vargs { @@ -24,7 +24,7 @@ func VariFunc(vargs ...int) int { return total } -/////////////// Variadic Over Struct ////////////// +// ///////////// Variadic Over Struct ////////////// type IntStrUct struct { p int } @@ -43,7 +43,7 @@ func VariStructFunc(vargs ...IntStrUct) int { return total } -/////////////// Variadic Over Interface ////////////// +// ///////////// Variadic Over Interface ////////////// type IntInterFace interface { Number() int }