1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-03 11:09:12 +02:00

Exclude imports and other boilerplate from page.

It was getting too long.
This commit is contained in:
Andrew Walbran 2023-02-13 02:22:47 +00:00
parent 100341aa9f
commit ac046661bf

View File

@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// ANCHOR: Example
#![no_main]
#![no_std]
@ -28,6 +27,7 @@ use gd32f1x0_hal::{
prelude::*,
};
// ANCHOR: Example
#[entry]
fn main() -> ! {
let p = Peripherals::take().unwrap();