Skip to content

Commit aa44b24

Browse files
committed
Update docs for extern crate syntax
1 parent c92250e commit aa44b24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/json.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
//! from JSON using the serialization API, using the derived serialization code.
8484
//!
8585
//! ```rust
86-
//! extern crate "rustc-serialize" as rustc_serialize;
86+
//! extern crate rustc_serialize;
8787
//! use rustc_serialize::json;
8888
//!
8989
//! // Automatically generate `RustcDecodable` and `RustcEncodable` trait
@@ -118,7 +118,7 @@
118118
//! ### Simple example of `ToJson` usage
119119
//!
120120
//! ```rust
121-
//! extern crate "rustc-serialize" as rustc_serialize;
121+
//! extern crate rustc_serialize;
122122
//! use rustc_serialize::json::{self, ToJson, Json};
123123
//!
124124
//! // A custom data structure
@@ -157,7 +157,7 @@
157157
//! ### Verbose example of `ToJson` usage
158158
//!
159159
//! ```rust
160-
//! extern crate "rustc-serialize" as rustc_serialize;
160+
//! extern crate rustc_serialize;
161161
//! use std::collections::BTreeMap;
162162
//! use rustc_serialize::json::{self, Json, ToJson};
163163
//!
@@ -199,7 +199,7 @@
199199
//! ## Parsing a `str` to `Json` and reading the result
200200
//!
201201
//! ```rust
202-
//! extern crate "rustc-serialize" as rustc_serialize;
202+
//! extern crate rustc_serialize;
203203
//! use rustc_serialize::json::Json;
204204
//!
205205
//! fn main() {

0 commit comments

Comments
 (0)