From afe5628b8fb779315c4772d80663493b11f9875a Mon Sep 17 00:00:00 2001 From: btracey Date: Thu, 25 Jul 2013 12:52:20 -0700 Subject: [PATCH] Changed package declaration to floats from sliceops --- examples_test.go | 2 +- floats.go | 3 ++- floats_test.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples_test.go b/examples_test.go index a75d617a..75424c2b 100644 --- a/examples_test.go +++ b/examples_test.go @@ -1,4 +1,4 @@ -package sliceops +package floats import ( "fmt" diff --git a/floats.go b/floats.go index 432bbe52..632a1de5 100644 --- a/floats.go +++ b/floats.go @@ -1,10 +1,11 @@ -package sliceops +package floats import "math" // InsufficientElements is an error type used by FindFirst type InsufficientElements struct{} +// Error makes InsufficientElements satisfy the error interface func (i *InsufficientElements) Error() string { return "Insufficient elements found" } diff --git a/floats_test.go b/floats_test.go index 58348c09..de99d9b2 100644 --- a/floats_test.go +++ b/floats_test.go @@ -1,4 +1,4 @@ -package sliceops +package floats import ( "math"