Skip to content

Commit ce0aa06

Browse files
committed
doc: readme fix
1 parent e0092fb commit ce0aa06

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,6 @@ for i, n := range seq2.Series(1, func(i int, prev int) (int, bool) { return i *
605605
}
606606
//[]int{0, 1, 2, 3, 4, 5}
607607
//[]int{1, 1, 2, 6, 24, 120}
608-
609-
assert.Equal(t, []int{0, 1, 2, 3, 4, 5}, numbers)
610-
assert.Equal(t, []int{1, 1, 2, 6, 24, 120}, factorials)
611608
```
612609

613610
#### Collectors
@@ -1097,8 +1094,7 @@ user := User{name: "Bob", surname: "Smith"}
10971094

10981095
fullName := use.If(len(user.surname) == 0, user.name).If(len(user.name) == 0, user.surname).
10991096
ElseGet(func() string { return user.name + " " + user.surname })
1100-
1101-
assert.Equal(t, "Bob Smith", fullName)
1097+
//Bob Smith
11021098
```
11031099

11041100
instead of:
@@ -1114,8 +1110,7 @@ if len(user.surname) == 0 {
11141110
} else {
11151111
fullName = user.name + " " + user.surname
11161112
}
1117-
1118-
assert.Equal(t, "Bob Smith", fullName)
1113+
//Bob Smith
11191114
```
11201115

11211116
#### first.Of

internal/docs/readme.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ include::../examples/seqexamples/seq_Range_test.go[lines=12..18,indent=0]
355355
import(
356356
"github.com/m4gshm/gollections/seq"
357357
)
358-
include::../examples/seqexamples/seq2_Series_test.go[lines=12..22,indent=0]
358+
include::../examples/seqexamples/seq2_Series_test.go[lines=12..20,indent=0]
359359
----
360360
===== Collectors
361361
====== seq.Slice
@@ -681,14 +681,14 @@ As example:
681681
[source,go]
682682
----
683683
import "github.com/m4gshm/gollections/expr/use"
684-
include::../examples/boilerplate/expr_use_test.go[lines=15..22,indent=0]
684+
include::../examples/boilerplate/expr_use_test.go[lines=15..21,indent=0]
685685
----
686686

687687
instead of:
688688

689689
[source,go]
690690
----
691-
include::../examples/boilerplate/expr_use_test.go[lines=27..38,indent=0]
691+
include::../examples/boilerplate/expr_use_test.go[lines=27..39,indent=0]
692692
----
693693

694694
===== first.Of

internal/examples/boilerplate/expr_use_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func Test_UseSimple(t *testing.T) {
1717

1818
fullName := use.If(len(user.surname) == 0, user.name).If(len(user.name) == 0, user.surname).
1919
ElseGet(func() string { return user.name + " " + user.surname })
20+
//Bob Smith
2021

2122
assert.Equal(t, "Bob Smith", fullName)
2223

@@ -34,6 +35,7 @@ func Test_UseSimpleOld(t *testing.T) {
3435
} else {
3536
fullName = user.name + " " + user.surname
3637
}
38+
//Bob Smith
3739

3840
assert.Equal(t, "Bob Smith", fullName)
3941

0 commit comments

Comments
 (0)