File tree 1 file changed +5
-6
lines changed
src/librustc_error_codes/error_codes
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ Erroneous code example:
8
8
fn foo2(x: u8, y: &...) {} // error!
9
9
```
10
10
11
- Only foreign functions can use the C-variadic type (` ... ` ).
12
- In such functions, ` ... ` may only occur non-nested.
13
- That is, ` y: &'a ... ` is not allowed.
11
+ Only foreign functions can use the C-variadic type (` ... ` ). In such functions,
12
+ ` ... ` may only occur non-nested. That is, ` y: &'a ... ` is not allowed.
14
13
15
- A C-variadic type is used to give an undefined number
16
- of parameters to a given function (like ` printf ` in C).
17
- The equivalent in Rust would be to use macros directly .
14
+ A C-variadic type is used to give an undefined number of parameters to a given
15
+ function (like ` printf ` in C). The equivalent in Rust would be to use macros
16
+ directly (like ` println! ` for example) .
You can’t perform that action at this time.
0 commit comments