Skip to content

Commit

Permalink
examples: simplify use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler committed May 4, 2019
1 parent 1426a8e commit 1e943bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/hyphenation.rs
@@ -1,7 +1,5 @@
#[cfg(feature = "hyphenation")]
use hyphenation::{Language, Load, Standard};
#[cfg(feature = "hyphenation")]
use textwrap::Wrapper;

#[cfg(not(feature = "hyphenation"))]
fn main() {
Expand All @@ -14,6 +12,6 @@ fn main() {
fn main() {
let text = "textwrap: a small library for wrapping text.";
let dictionary = Standard::from_embedded(Language::EnglishUS).unwrap();
let wrapper = Wrapper::with_splitter(18, dictionary);
let wrapper = textwrap::Wrapper::with_splitter(18, dictionary);
println!("{}", wrapper.fill(text));
}

0 comments on commit 1e943bf

Please sign in to comment.