lang: funcs: structs: Fix typos

This commit is contained in:
James Shubin
2025-06-30 06:45:40 -04:00
parent 8edb8e2a7b
commit 138ff8a895
3 changed files with 3 additions and 3 deletions

View File

@@ -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 // Call this function with the input args and return the value if it is possible
// to do so at this time. // 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) { func (obj *ChannelBasedSinkFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) {
if len(args) != 1 { if len(args) != 1 {
return nil, fmt.Errorf("programming error, can't find edge") return nil, fmt.Errorf("programming error, can't find edge")

View File

@@ -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: tricky since this really receives input from a secret channel...
// XXX: ADD A MUTEX AROUND READING obj.last ??? // XXX: ADD A MUTEX AROUND READING obj.last ???
//func (obj *ChannelBasedSourceFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) { //func (obj *ChannelBasedSourceFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) {

View File

@@ -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 // Call this function with the input args and return the value if it is possible
// to do so at this time. // 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) { func (obj *IfFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) {
if obj.Info() == nil { if obj.Info() == nil {
return nil, fmt.Errorf("info is empty") return nil, fmt.Errorf("info is empty")