Skip to content

Commit c9cb3d1

Browse files
authored
chore: fix some function names in comment (aquasecurity#9314)
Signed-off-by: tanhuaan <tanhuaan@outlook.com>
1 parent b7b4910 commit c9cb3d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/module/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func ptrSizeToString(mem api.Memory, ptrSize uint64) (string, error) {
192192
return string(buf), nil
193193
}
194194

195-
// stringToPtr returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types.
195+
// stringToPtrSize returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types.
196196
// The caller is responsible for calling free at some point if needed.
197197
func stringToPtrSize(ctx context.Context, s string, mod api.Module, malloc api.Function) (uint64, uint64, error) {
198198
size := uint64(len(s))

pkg/notification/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type updateResponse struct {
3434
Warnings []string `json:"warnings"`
3535
}
3636

37-
// shoudDisplay checks if the announcement should be displayed
37+
// shouldDisplay checks if the announcement should be displayed
3838
// based on the current time and version. If version and date constraints are provided
3939
// they are checked against the current time and version.
4040
func (a *announcement) shouldDisplay(ctx context.Context, currentVersion semver.Version) bool {

0 commit comments

Comments
 (0)