chore: fix some function names in comment (#9314)

Signed-off-by: tanhuaan <tanhuaan@outlook.com>
This commit is contained in:
tanhuaan
2025-08-05 21:04:30 +08:00
committed by GitHub
parent b7b491094a
commit c9cb3d16ff
2 changed files with 2 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ func ptrSizeToString(mem api.Memory, ptrSize uint64) (string, error) {
return string(buf), nil
}
// stringToPtr returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types.
// stringToPtrSize returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types.
// The caller is responsible for calling free at some point if needed.
func stringToPtrSize(ctx context.Context, s string, mod api.Module, malloc api.Function) (uint64, uint64, error) {
size := uint64(len(s))

View File

@@ -34,7 +34,7 @@ type updateResponse struct {
Warnings []string `json:"warnings"`
}
// shoudDisplay checks if the announcement should be displayed
// shouldDisplay checks if the announcement should be displayed
// based on the current time and version. If version and date constraints are provided
// they are checked against the current time and version.
func (a *announcement) shouldDisplay(ctx context.Context, currentVersion semver.Version) bool {