hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit be82b5a94fdc35de315dbccd7bef3d4c2e3d34f5
parent be19f4eb91be594d4bcb5d7fde37be20835d294a
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 23 Mar 2015 12:42:42 +0100

Polish Slice doc

Diffstat:
Mtpl/template.go | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tpl/template.go b/tpl/template.go
@@ -189,8 +189,9 @@ func compareGetFloat(a interface{}, b interface{}) (float64, float64) {
 }
 
 // Slicing in Slice is done by specifying a half-open range with
-// two indices, lower and upper. 1 and 4 creates a slice including elements 1 through 3.
-// The start and/or end indices can be omitted by setting one or both of them to -1; they default to zero and the slice's length respectively
+// two indices, start and end. 1 and 4 creates a slice including elements 1 through 3.
+// The start and/or end indices can be omitted by setting one or both of them to -1;
+// they default to zero and the slice's length respectively
 func Slice(a interface{}, start, end int) (string, error) {
 	aStr, err := cast.ToStringE(a)
 	if err != nil {