docs: remove spurious main functions
This commit is contained in:
parent
e09d782609
commit
adc5de601f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user