fix vec doc

This commit is contained in:
faiface 2016-11-19 14:13:36 +01:00
parent 966f31a68e
commit 6e95738aa0
1 changed files with 4 additions and 4 deletions

8
vec.go
View File

@ -19,13 +19,13 @@ import (
// Add and subtract them using the standard + and - operators: // Add and subtract them using the standard + and - operators:
// //
// w := u + v // w := u + v
// fmt.Println(w) // Vec2(9, -1) // fmt.Println(w) // Vec(9, -1)
// fmt.Println(u - v) // Vec2(-7, 5) // fmt.Println(u - v) // Vec(-7, 5)
// //
// Additional standard vector operations can be obtained with methods: // Additional standard vector operations can be obtained with methods:
// //
// u := pixel.Vec(2, 3) // u := pixel.V(2, 3)
// v := pixel.Vec(8, 1) // v := pixel.V(8, 1)
// if u.X() < 0 { // if u.X() < 0 {
// fmt.Println("this won't happend") // fmt.Println("this won't happend")
// } // }