Skip to content

Commit

Permalink
some small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Dec 27, 2017
1 parent 0b9bf03 commit 831cb49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_std/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl_wrap_char!(ToUppercase, char::to_uppercase);
arbitrary!(DecodeUtf8<<Vec<u8> as IntoIterator>::IntoIter>,
Flatten<Mapped<'a, u16, SMapped<'a, Vec<u8>, Self>>>;
any::<u16>().prop_flat_map(|size| any_with_smap(
product_pack![size_bounds(..size as usize), default()].into(),
product_pack![size_bounds(..size as usize), default()],
decode_utf8
))
);
Expand All @@ -35,7 +35,7 @@ arbitrary!(DecodeUtf8<<Vec<u8> as IntoIterator>::IntoIter>,
arbitrary!(DecodeUtf16<<Vec<u16> as IntoIterator>::IntoIter>,
Flatten<Mapped<'a, u16, SMapped<'a, Vec<u16>, Self>>>;
any::<u16>().prop_flat_map(|size| any_with_smap(
product_pack![size_bounds(..size as usize), default()].into(),
product_pack![size_bounds(..size as usize), default()],
decode_utf16
))
);
Expand Down
2 changes: 1 addition & 1 deletion src/_std/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn make_utf16_invalid(buf: &mut Vec<u16>, p: usize) {
}

/// Generates the set of `WTF-16 \ UTF-16` and makes
/// an OsString that is not a valid String from it.
/// an `OsString` that is not a valid String from it.
#[cfg(target_os = "windows")]
fn osstring_invalid_string() -> BoxedStrategy<OsString> {
use std::os::windows::ffi::OsStringExt;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ pub fn any_with<'a, A: Arbitrary<'a>>(args: A::Parameters)
mod utils;
use utils::*;
pub use utils::{Mapped, FMapped as MappedF, SMapped as MappedS};
use extras::*;
pub use extras::*;
mod extras;

mod params;
Expand Down

0 comments on commit 831cb49

Please sign in to comment.