aboutsummaryrefslogtreecommitdiff
path: root/examples/termwidth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/termwidth.rs')
-rw-r--r--examples/termwidth.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/termwidth.rs b/examples/termwidth.rs
index 75db3aa..bd4070b 100644
--- a/examples/termwidth.rs
+++ b/examples/termwidth.rs
@@ -1,18 +1,14 @@
#[cfg(feature = "hyphenation")]
-extern crate hyphenation;
-extern crate textwrap;
-
-#[cfg(feature = "hyphenation")]
use hyphenation::{Language, Load, Standard};
-#[cfg(feature = "term_size")]
+#[cfg(feature = "terminal_size")]
use textwrap::Wrapper;
-#[cfg(not(feature = "term_size"))]
+#[cfg(not(feature = "terminal_size"))]
fn main() {
- println!("Please enable the term_size feature to run this example.");
+ println!("Please enable the terminal_size feature to run this example.");
}
-#[cfg(feature = "term_size")]
+#[cfg(feature = "terminal_size")]
fn main() {
#[cfg(not(feature = "hyphenation"))]
fn new_wrapper<'a>() -> (&'static str, Wrapper<'a, textwrap::HyphenSplitter>) {