From 138ff8a89546b7047d13e0b440c1ee136ff94fce Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 30 Jun 2025 06:45:40 -0400 Subject: [PATCH] lang: funcs: structs: Fix typos --- lang/funcs/structs/channel_based_sink.go | 2 +- lang/funcs/structs/channel_based_source.go | 2 +- lang/funcs/structs/if.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/funcs/structs/channel_based_sink.go b/lang/funcs/structs/channel_based_sink.go index 983fe631..586f310c 100644 --- a/lang/funcs/structs/channel_based_sink.go +++ b/lang/funcs/structs/channel_based_sink.go @@ -147,7 +147,7 @@ func (obj *ChannelBasedSinkFunc) Stream(ctx context.Context) error { // Call this function with the input args and return the value if it is possible // to do so at this time. -// XXX: Is is correct to implement this here for this particular function? +// XXX: Is it correct to implement this here for this particular function? func (obj *ChannelBasedSinkFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) { if len(args) != 1 { return nil, fmt.Errorf("programming error, can't find edge") diff --git a/lang/funcs/structs/channel_based_source.go b/lang/funcs/structs/channel_based_source.go index 96d71543..44cea079 100644 --- a/lang/funcs/structs/channel_based_source.go +++ b/lang/funcs/structs/channel_based_source.go @@ -114,7 +114,7 @@ func (obj *ChannelBasedSourceFunc) Stream(ctx context.Context) error { } } -// XXX: Is is correct to implement this here for this particular function? +// XXX: Is it correct to implement this here for this particular function? // XXX: tricky since this really receives input from a secret channel... // XXX: ADD A MUTEX AROUND READING obj.last ??? //func (obj *ChannelBasedSourceFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) { diff --git a/lang/funcs/structs/if.go b/lang/funcs/structs/if.go index ebee1931..98d82fa0 100644 --- a/lang/funcs/structs/if.go +++ b/lang/funcs/structs/if.go @@ -148,7 +148,7 @@ func (obj *IfFunc) Stream(ctx context.Context) error { // Call this function with the input args and return the value if it is possible // to do so at this time. -// XXX: Is is correct to implement this here for this particular function? +// XXX: Is it correct to implement this here for this particular function? func (obj *IfFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) { if obj.Info() == nil { return nil, fmt.Errorf("info is empty")