Skip to content

Commit

Permalink
Merge pull request #1494 from veera-sivarajan/c23-variadics
Browse files Browse the repository at this point in the history
Mention Variadics With No Fixed Parameter
  • Loading branch information
ehuss committed May 30, 2024
2 parents 02674ce + 845baee commit b33bf81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/items/external-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ There are also some platform-specific ABI strings:
## Variadic functions

Functions within external blocks may be variadic by specifying `...` as the
last argument. There must be at least one parameter before the variadic
parameter. The variadic parameter may optionally be specified with an
last argument. The variadic parameter may optionally be specified with an
identifier.

```rust
extern "C" {
fn foo(x: i32, ...);
fn foo(...);
fn bar(x: i32, ...);
fn with_name(format: *const u8, args: ...);
}
```
Expand Down

0 comments on commit b33bf81

Please sign in to comment.