Skip to content

Commit

Permalink
issue 80
Browse files Browse the repository at this point in the history
  • Loading branch information
dsietz committed Sep 14, 2019
1 parent 5eaae67 commit e4316f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-data-generation"
version = "0.1.0"
version = "0.1.1"
authors = ["dsietz <davidsietz@yahoo.com>"]
repository = "https://github.com/dsietz/test-data-generation.git"
documentation = "https://docs.rs/test-data-generation/"
Expand Down
11 changes: 5 additions & 6 deletions src/profile/pattern_placeholder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn init() -> PlaceholderMap{
impl PatternPlaceholder {
/// Constructs a new PatternPlaceholder
///
/// #Example
/// # Example
///
/// ```
/// extern crate test_data_generation;
Expand All @@ -88,13 +88,12 @@ impl PatternPlaceholder {
/// extern crate test_data_generation;
///
/// use test_data_generation::profile::pattern_placeholder::PatternPlaceholder;
///
///
/// fn main() {
/// let placeholder = PatternPlaceholder::new();
///
/// println!("Upper case vowel symbol: {:?}", placeholder.get(&"VowelUpper".to_string()));
/// let placeholder = PatternPlaceholder::new();
/// println!("Upper case vowel symbol: {:?}", placeholder.get(&"VowelUpper".to_string()));
/// }
/// ```
/// ```
pub fn get(&self, key: &str) -> char {
*self.placeholder.get(key).unwrap()
}
Expand Down

0 comments on commit e4316f8

Please sign in to comment.