]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/trpl/no-stdlib.md
TRPL: Add `rust` Marker to Some Code Block
[rust.git] / src / doc / trpl / no-stdlib.md
index 539a0729ba336011f59e9ff469951faf79bc307f..0a985334b5e4b694d797eb673986bc4fdebbbbe2 100644 (file)
@@ -20,8 +20,8 @@ default shim for the C `main` function with your own.
 The function marked `#[start]` is passed the command line parameters
 in the same format as C:
 
-```
-#![feature(lang_items, start, no_std)]
+```rust
+#![feature(lang_items, start, no_std, libc)]
 #![no_std]
 
 // Pull in the system libc library for what crt0.o likely requires
@@ -103,8 +103,8 @@ necessary functionality for writing idiomatic and effective Rust code.
 As an example, here is a program that will calculate the dot product of two
 vectors provided from C, using idiomatic Rust practices.
 
-```
-#![feature(lang_items, start, no_std)]
+```ignore
+#![feature(lang_items, start, no_std, core, libc)]
 #![no_std]
 
 # extern crate libc;