Browse Source

Merge pull request #10768 from cloud-native-team/v2

fix some comments
Guillaume Lours 2 năm trước cách đây
mục cha
commit
b1334b8dfc
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      pkg/api/proxy.go
  2. 1 1
      pkg/utils/slices.go

+ 1 - 1
pkg/api/proxy.go

@@ -217,7 +217,7 @@ func (s *ServiceProxy) List(ctx context.Context, options ListOptions) ([]Stack,
 	return s.ListFn(ctx, options)
 }
 
-// Convert implements Service interface
+// Config implements Service interface
 func (s *ServiceProxy) Config(ctx context.Context, project *types.Project, options ConfigOptions) ([]byte, error) {
 	if s.ConfigFn == nil {
 		return nil, ErrNotImplemented

+ 1 - 1
pkg/utils/slices.go

@@ -29,7 +29,7 @@ func Contains[T any](origin []T, element T) bool {
 	return false
 }
 
-// RemoveAll removes all elements from origin slice
+// Remove removes all elements from origin slice
 func Remove[T any](origin []T, elements ...T) []T {
 	var filtered []T
 	for _, v := range origin {