mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Fix typo.
parent
3a1d3cdc9e
commit
1048fc80c5
@ -449,7 +449,7 @@ func f3(x myInterface) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The conversion to `myPrintInterface` is entirely dynamic. It will work as long as the dynamic type of x defines a `print` method.
|
The conversion to `myPrintInterface` is entirely dynamic. It will work as long as the dynamic type of x defines a `Print` method.
|
||||||
|
|
||||||
Because the conversion is dynamic, it may be used to implement generic programming similar to templates in C++. This is done by manipulating values of the minimal interface.
|
Because the conversion is dynamic, it may be used to implement generic programming similar to templates in C++. This is done by manipulating values of the minimal interface.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user