summaryrefslogtreecommitdiff
path: root/doc/progs/sum.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/sum.go')
-rw-r--r--doc/progs/sum.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/sum.go b/doc/progs/sum.go
index 3ca1a5877..0ca7c042a 100644
--- a/doc/progs/sum.go
+++ b/doc/progs/sum.go
@@ -14,6 +14,6 @@ func sum(a []int) int { // returns an int
func main() {
- s := sum([3]int{1,2,3}); // a slice of the array is passed to sum
+ s := sum([3]int(1,2,3)); // a slice of the array is passed to sum
print(s, "\n");
}