Skip to content

Commit

Permalink
Merge pull request #269 from mgeisler/link-directly-to-deps
Browse files Browse the repository at this point in the history
Link directly to dependencies in docstrings
  • Loading branch information
mgeisler authored Dec 30, 2020
2 parents e6c974b + c777475 commit 879214d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@
//! [hyphenation] crate. See the [`WordSplitter`] trait for details.
//!
//! [unicode-width]: https://docs.rs/unicode-width/
//! [smawk]: https://docs.rs/smawk/
//! [textwrap-macros]: https://docs.rs/textwrap-macros/
//! [terminal_size]: https://docs.rs/terminal_size/
//! [hyphenation]: https://docs.rs/hyphenation/
#![doc(html_root_url = "https://docs.rs/textwrap/0.13.1")]
#![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210
Expand Down
4 changes: 4 additions & 0 deletions src/splitting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
///
/// Please see the documentation for the [hyphenation] crate for more
/// details.
///
/// [hyphenation]: https://docs.rs/hyphenation/
pub trait WordSplitter: std::fmt::Debug {
/// Return all possible indices where `word` can be split.
///
Expand Down Expand Up @@ -127,6 +129,8 @@ impl WordSplitter for HyphenSplitter {
///
/// **Note:** Only available when the `hyphenation` Cargo feature is
/// enabled.
///
/// [hyphenation]: https://docs.rs/hyphenation/
#[cfg(feature = "hyphenation")]
impl WordSplitter for hyphenation::Standard {
fn split_points(&self, word: &str) -> Vec<usize> {
Expand Down

0 comments on commit 879214d

Please sign in to comment.