Skip to content

Commit dc1044f

Browse files
committed
Make grammars more formal
1 parent 947b998 commit dc1044f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-fun-vs-fun-ptr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ expressiveness today.
5353
Quite simply, change the syntax of function pointer types from
5454

5555
```rust
56-
fn(...) ...
56+
('extern' STRING_LIT?)? 'fn' '(' (IDEN ':' TYPE (',' IDEN ':' TYPE)* ','?)? ')' ('->' TYPE)?
5757
```
5858

5959
to
6060

6161
```rust
62-
&'static fn(...) ...
62+
'&' '\'static' ('extern' STRING_LIT?)? 'fn' '(' (IDEN ':' TYPE (',' IDEN ':' TYPE)* ','?)? ')' ('->' TYPE)?
6363
```
6464

6565
Like slices before DST, the `fn(...) ...` itself will not denote a type on its own and need not even

0 commit comments

Comments
 (0)