docs: remove spurious main functions
This commit is contained in:
parent
e09d782609
commit
adc5de601f
1 changed files with 0 additions and 4 deletions
|
@ -7,8 +7,6 @@ Erroneous code example:
|
||||||
|
|
||||||
#[optimize(something)] // error: invalid argument
|
#[optimize(something)] // error: invalid argument
|
||||||
pub fn something() {}
|
pub fn something() {}
|
||||||
|
|
||||||
fn main() {}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The `#[optimize]` attribute should be used as follows:
|
The `#[optimize]` attribute should be used as follows:
|
||||||
|
@ -25,8 +23,6 @@ For example:
|
||||||
|
|
||||||
#[optimize(size)]
|
#[optimize(size)]
|
||||||
pub fn something() {}
|
pub fn something() {}
|
||||||
|
|
||||||
fn main() {}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
See [RFC 2412] for more details.
|
See [RFC 2412] for more details.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue