diff --git a/batch.go b/batch.go index 60e00ca..e1cd5b1 100644 --- a/batch.go +++ b/batch.go @@ -310,7 +310,7 @@ func (ctx *BatchedContext) Close() error { return ctx.Context.Close() } -// Errors returns any errors that may have occured during a batch processing +// Errors returns any errors that may have occurred during a batch processing func (ctx *BatchedContext) Errors() error { return ctx.errors() } // FirstError returns the first error if there was any @@ -459,7 +459,7 @@ func (ctx *BatchedContext) AllocAndCopy(p unsafe.Pointer, bytesize int64) (retVa /* PRIVATE METHODS */ -// checkResults returns true if an error has occured while processing the queue +// checkResults returns true if an error has occurred while processing the queue func (ctx *BatchedContext) checkResults() bool { for _, v := range ctx.results { if v != C.CUDA_SUCCESS { diff --git a/ctx.go b/ctx.go index 429fdee..bda2a86 100644 --- a/ctx.go +++ b/ctx.go @@ -111,7 +111,7 @@ func (ctx *Ctx) Do(fn func() error) error { // CUDAContext returns the CUDA Context func (ctx *Ctx) CUDAContext() CUContext { return ctx.CUContext } -// Error returns the errors that may have occured during the calls. +// Error returns the errors that may have occurred during the calls. func (ctx *Ctx) Error() error { return ctx.err } // Work returns the channel where work will be passed in. In most cases you don't need this. Use Run instead. diff --git a/ctx_debug.go b/ctx_debug.go index 52728ab..64685b5 100644 --- a/ctx_debug.go +++ b/ctx_debug.go @@ -114,7 +114,7 @@ func (ctx *Ctx) Do(fn func() error) error { // CUDAContext returns the CUDA Context func (ctx *Ctx) CUDAContext() CUContext { return ctx.CUContext } -// Error returns the errors that may have occured during the calls. +// Error returns the errors that may have occurred during the calls. func (ctx *Ctx) Error() error { return ctx.err } // Work returns the channel where work will be passed in. In most cases you don't need this. Use Run instead.