docs: remove spurious main functions

This commit is contained in:
Chris Midgley 2021-07-21 10:57:27 +01:00
parent e09d782609
commit adc5de601f
1 changed files with 0 additions and 4 deletions

View File

@ -7,8 +7,6 @@ Erroneous code example:
#[optimize(something)] // error: invalid argument
pub fn something() {}
fn main() {}
```
The `#[optimize]` attribute should be used as follows:
@ -25,8 +23,6 @@ For example:
#[optimize(size)]
pub fn something() {}
fn main() {}
```
See [RFC 2412] for more details.