1
Fork 0

docs: remove spurious main functions

This commit is contained in:
Chris Midgley 2021-07-21 10:57:27 +01:00
parent e09d782609
commit adc5de601f

View file

@ -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.