Skip to content

Commit

Permalink
Make getting-started example copy-paste friendly
Browse files Browse the repository at this point in the history
Make getting-started example copy-paste friendly by adding "extern crate sdl2;" line.

When I was starting to read the docs, the first thing I did was copy-paste this example into a file to play with it but without this line, it doesn't compile (easy enough to fix, but wanted to fix it at the source).

From reading the contributing guidelines, this appears to be small enough/documentation only, so I didn't think it required a changelog update.
  • Loading branch information
slongfield authored and Cobrand committed Sep 11, 2018
1 parent 5d2d9a7 commit 3e6ec82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdl2/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! # Getting started
//!
//! ```rust,no_run
//! extern crate sdl2;
//!
//! use sdl2::pixels::Color;
//! use sdl2::event::Event;
//! use sdl2::keyboard::Keycode;
Expand Down

0 comments on commit 3e6ec82

Please sign in to comment.