Skip to content

Commit 0aecf41

Browse files
authored
doc: clarify a sentence (#27)
1 parent 5c9fab7 commit 0aecf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Some tests (e.g. `TestCollector_Filtering`) are using receiver Getter methods in
291291

292292
A method Getter is typically defined as `func (T) Property() R {...}`.
293293

294-
While `Property()` does not take any argument, Go allows `T.Property` be called as `T.Property(t)`, where `t` is the receiver. This is a `func(T) R` and hence a `Function[T, R any]`.
294+
With `t` as the receiver, Go allows `t.Property()` be called as `T.Property(t)`. This is a `func(T) R` and hence a `Function[T, R any]`.
295295

296296
Example - `TestCollector_Filtering`:
297297

0 commit comments

Comments
 (0)