Skip to content

Commit b7c14fa

Browse files
authored
Fix godoc formatting (#1127)
1 parent 9a4b48b commit b7c14fa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cel/library.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (stdLibrary) ProgramOptions() []ProgramOption {
263263
// be expressed with `optMap`.
264264
//
265265
// msg.?elements.optFlatMap(e, e[?0]) // return the first element if present.
266-
266+
//
267267
// # First
268268
//
269269
// Introduced in version: 2
@@ -272,7 +272,7 @@ func (stdLibrary) ProgramOptions() []ProgramOption {
272272
// optional.None.
273273
//
274274
// [1, 2, 3].first().value() == 1
275-
275+
//
276276
// # Last
277277
//
278278
// Introduced in version: 2
@@ -283,7 +283,7 @@ func (stdLibrary) ProgramOptions() []ProgramOption {
283283
// [1, 2, 3].last().value() == 3
284284
//
285285
// This is syntactic sugar for msg.elements[msg.elements.size()-1].
286-
286+
//
287287
// # Unwrap / UnwrapOpt
288288
//
289289
// Introduced in version: 2
@@ -293,7 +293,6 @@ func (stdLibrary) ProgramOptions() []ProgramOption {
293293
//
294294
// optional.unwrap([optional.of(42), optional.none()]) == [42]
295295
// [optional.of(42), optional.none()].unwrapOpt() == [42]
296-
297296
func OptionalTypes(opts ...OptionalTypesOption) EnvOption {
298297
lib := &optionalLib{version: math.MaxUint32}
299298
for _, opt := range opts {

ext/lists.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var comparableTypes = []*cel.Type{
134134
//
135135
// <list(T)>.sortBy(<bindingName>, <keyExpr>) -> <list(T)>
136136
// keyExpr returns a value in {int, uint, double, bool, duration, timestamp, string, bytes}
137-
137+
//
138138
// Examples:
139139
//
140140
// [
@@ -143,7 +143,6 @@ var comparableTypes = []*cel.Type{
143143
// Player { name: "baz", score: 1000 },
144144
// ].sortBy(e, e.score).map(e, e.name)
145145
// == ["bar", "foo", "baz"]
146-
147146
func Lists(options ...ListsOption) cel.EnvOption {
148147
l := &listsLib{version: math.MaxUint32}
149148
for _, o := range options {

0 commit comments

Comments
 (0)