File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2044,21 +2044,21 @@ A complete list of the built-in language items will be added in the future.
20442044
20452045### Inline attributes
20462046
2047- The inline attribute is used to suggest to the compiler to perform an inline
2048- expansion and place a copy of the function or static in the caller rather than
2049- generating code to call the function or access the static where it is defined.
2047+ The inline attribute suggests that the compiler should place a copy of
2048+ the function or static in the caller, rather than generating code to
2049+ call the function or access the static where it is defined.
20502050
20512051The compiler automatically inlines functions based on internal heuristics.
2052- Incorrectly inlining functions can actually making the program slower, so it
2052+ Incorrectly inlining functions can actually make the program slower, so it
20532053should be used with care.
20542054
20552055Immutable statics are always considered inlineable unless marked with
20562056` #[inline(never)] ` . It is undefined whether two different inlineable statics
20572057have the same memory address. In other words, the compiler is free to collapse
20582058duplicate inlineable statics together.
20592059
2060- ` #[inline] ` and ` #[inline(always)] ` always causes the function to be serialized
2061- into crate metadata to allow cross-crate inlining.
2060+ ` #[inline] ` and ` #[inline(always)] ` always cause the function to be serialized
2061+ into the crate metadata to allow cross-crate inlining.
20622062
20632063There are three different types of inline attributes:
20642064
You can’t perform that action at this time.
0 commit comments