about summary refs log tree commit diff
path: root/structs.go
diff options
context:
space:
mode:
authorhanemile <hanemile@protonmail.com>2018-11-03 17:51:37 +0100
committerhanemile <hanemile@protonmail.com>2018-11-03 17:51:37 +0100
commit1ecde651aec890c30bcbc3db79ce202fc323266e (patch)
tree8649d03a16bf0e9ad15ec1d149c2bbb135267539 /structs.go
parente2751726e199f5b50d702a61672c037be96a2673 (diff)
moved the ExampleNewCoord function to the test file.
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index 0fcdc14..8689c7a 100644
--- a/structs.go
+++ b/structs.go
@@ -19,11 +19,6 @@ func NewCoord(x float64, y float64) Coord {
 	return Coord{x, y}
 }
 
-func ExampleNewCoord() {
-	fmt.Println(NewCoord(1, 1))
-	// Output: {1, 1}
-}
-
 // NewBoundingBox returns a new bounding with the given struct elements
 func NewBoundingBox(inCenter Coord, inHalfDimension float64) BoundingBox {
 	return BoundingBox{