From 00d3e59c8c118d7da9e493870183efbd8d013f83 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Tue, 23 Jun 2026 06:38:34 +0800 Subject: [PATCH 1/2] fix: correct occured to occurred typo in comment --- ctx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From d947772c5f94134287b1ce004f8ac6a16a481914 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Fri, 17 Jul 2026 05:17:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20correct=20doc=20typos=20'occured'=20?= =?UTF-8?q?=E2=86=92=20'occurred'=20in=20batch.go=20and=20ctx=5Fdebug.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batch.go | 4 ++-- ctx_debug.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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_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.