Skip to content

Commit 8d8b90e

Browse files
committed
remove some past-tense-ness
1 parent f2650f1 commit 8d8b90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Often developers have to use reflection to implement these *ahem* generic functi
120120

121121
Ideally, we don't want to have to make specific `AssertX` functions for every type we ever deal with. We'd like to be able to have _one_ `AssertEqual` function that works with _any_ type but does not let you compare [apples and oranges](https://en.wikipedia.org/wiki/Apples_and_oranges).
122122

123-
Generics offer us a way to make abstractions (like interfaces) by letting us **describe our constraints** in ways we cannot currently do.
123+
Generics offer us a way to make abstractions (like interfaces) by letting us **describe our constraints**. They allow us to write functions that have a similar level of flexibility that `interface{}` offers but retain type-safety and provide a better developer experience for callers.
124124

125125
```go
126126
func TestAssertFunctions(t *testing.T) {

0 commit comments

Comments
 (0)