mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
chore: fix some function names in comment (#9314)
Signed-off-by: tanhuaan <tanhuaan@outlook.com>
This commit is contained in:
@@ -192,7 +192,7 @@ func ptrSizeToString(mem api.Memory, ptrSize uint64) (string, error) {
|
|||||||
return string(buf), nil
|
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.
|
// 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) {
|
func stringToPtrSize(ctx context.Context, s string, mod api.Module, malloc api.Function) (uint64, uint64, error) {
|
||||||
size := uint64(len(s))
|
size := uint64(len(s))
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ type updateResponse struct {
|
|||||||
Warnings []string `json:"warnings"`
|
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
|
// based on the current time and version. If version and date constraints are provided
|
||||||
// they are checked against the current time and version.
|
// they are checked against the current time and version.
|
||||||
func (a *announcement) shouldDisplay(ctx context.Context, currentVersion semver.Version) bool {
|
func (a *announcement) shouldDisplay(ctx context.Context, currentVersion semver.Version) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user