mirror of
https://github.com/edg-l/edgarluque.com.git
synced 2024-11-09 09:38:23 +00:00
typo
This commit is contained in:
parent
29de1ab1fd
commit
cb6149c539
|
@ -6,7 +6,7 @@ description = "A simple trick to avoid generics generating a lot of code."
|
||||||
categories = ["rust"]
|
categories = ["rust"]
|
||||||
+++
|
+++
|
||||||
|
|
||||||
When using generics in Rust (an any language that supports this), what happens under the hood is that the compiler generates a function
|
When using generics in Rust (and any language that supports this), what happens under the hood is that the compiler generates a function
|
||||||
implementation when it finds a call for each combination of different types used in the generic parameters.
|
implementation when it finds a call for each combination of different types used in the generic parameters.
|
||||||
|
|
||||||
This can produce a lot of code if the function body is big.
|
This can produce a lot of code if the function body is big.
|
||||||
|
|
Loading…
Reference in a new issue