Skip to content

Commit

Permalink
Make grammars more formal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Feb 22, 2015
1 parent 947b998 commit dc1044f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/0000-fun-vs-fun-ptr.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ expressiveness today.
Quite simply, change the syntax of function pointer types from

```rust
fn(...) ...
('extern' STRING_LIT?)? 'fn' '(' (IDEN ':' TYPE (',' IDEN ':' TYPE)* ','?)? ')' ('->' TYPE)?
```

to

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

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

0 comments on commit dc1044f

Please sign in to comment.