From dc1044f39cced35a3c91e93c475bdecbc2e54438 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sun, 22 Feb 2015 14:22:43 -0500 Subject: [PATCH] Make grammars more formal --- text/0000-fun-vs-fun-ptr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/0000-fun-vs-fun-ptr.md b/text/0000-fun-vs-fun-ptr.md index 6ada8cf7c6c..d6618aa0c36 100644 --- a/text/0000-fun-vs-fun-ptr.md +++ b/text/0000-fun-vs-fun-ptr.md @@ -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