Skip to content

Commit 5aadf0b

Browse files
committed
wit: pass ErrorContext{} by value, not pointer
1 parent 4949f48 commit 5aadf0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wit/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func ParseType(s string) (Type, error) {
7171
case "string":
7272
return String{}, nil
7373
case "error-context":
74-
return &ErrorContext{}, nil
74+
return ErrorContext{}, nil
7575
}
7676
return nil, fmt.Errorf("unknown primitive type %q", s)
7777
}

0 commit comments

Comments
 (0)