mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
fixed inline example
This commit is contained in:
+3
-1
@@ -276,7 +276,9 @@ impl<'r, 't, TC: TextureOwner> RenderTarget for TextureTarget<'r, 't, TC> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust,no_run
|
||||
/// # use sdl2::window::Window;
|
||||
/// # use sdl2::render::Canvas;
|
||||
/// # use sdl2::video::Window;
|
||||
/// # use sdl2::pixels::Color;
|
||||
/// # use sdl2::rect::Rect;
|
||||
/// # let sdl_context = sdl2::init().unwrap();
|
||||
/// # let video_subsystem = sdl_context.video().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user