From f5b919ebb9ca79210fbb936b2ff6a52271a5be7e Mon Sep 17 00:00:00 2001 From: Antoine Pietri Date: Fri, 4 Oct 2024 17:16:47 +0000 Subject: [PATCH] Lists extension: fix inconsistent indentation of inline comments --- ext/lists.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/lists.go b/ext/lists.go index 0bc06ad1..37ba5138 100644 --- a/ext/lists.go +++ b/ext/lists.go @@ -76,11 +76,11 @@ var comparableTypes = []*cel.Type{ // // Returns the elements of a list in reverse order. // -// .reverse() -> +// .reverse() -> // // Examples: // -// [5, 3, 1, 2].reverse() // return [2, 1, 3, 5] +// [5, 3, 1, 2].reverse() // return [2, 1, 3, 5] // // # Slice // @@ -486,13 +486,13 @@ func sortListByAssociatedKeys(list, keys traits.Lister) (ref.Val, error) { // // mylistExpr.sortBy(e, -math.abs(e)) // -// into: +// into something equivalent to: // -// cel.bind( +// cel.bind( // __sortBy_input__, // myListExpr, // __sortBy_input__.@sortByAssociatedKeys(__sortBy_input__.map(e, -math.abs(e)) -// ) +// ) func sortByMacro(meh cel.MacroExprFactory, target ast.Expr, args []ast.Expr) (ast.Expr, *cel.Error) { varIdent := meh.NewIdent("@__sortBy_input__") varName := varIdent.AsIdent()