Skip to content

Commit

Permalink
Update doc tests to work around cargo bug and compile properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Osspial committed May 18, 2016
1 parent ee8aa04 commit 31f47d2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions vk_generator/src/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<'a> GenConfig<'a> {
/// to `type HWND = *const ()`, which isn't what HWNDs are defined as in `winapi`. So we call this:
///
/// ```
/// # use vk_generator::generator::GenConfig;
/// # use vk_generator::GenConfig;
/// GenConfig::new()
/// .extern_type_overrides(&[("HWND", "winapi::HWND"),
/// ("HINSTANCE", "winapi::HINSTANCE")]);
Expand Down Expand Up @@ -1052,8 +1052,10 @@ impl<'a> VkRegistry<'a> {
/// # Examples
///
/// ```no_run
/// # extern crate vk_generator;
/// # extern crate vk_api;
/// # // external crate declarations seems to break the code, so this is a workaround that probably won't ever be replaced.
/// # mod vk_api {
/// # pub const VK_XML: &'static [u8] = &[0];
/// # }
/// #
/// # use vk_generator::{VkRegistry, GenConfig, VkVersion};
/// # use std::env;
Expand Down Expand Up @@ -1105,8 +1107,10 @@ impl<'a> VkRegistry<'a> {
/// # Examples
///
/// ```no_run
/// # extern crate vk_generator;
/// # extern crate vk_api;
/// # // Ditto.
/// # mod vk_api {
/// # pub const VK_XML: &'static [u8] = &[0];
/// # }
/// #
/// # use vk_generator::{VkRegistry, GenConfig, VkVersion};
/// # use std::env;
Expand Down

0 comments on commit 31f47d2

Please sign in to comment.