Skip to content

Commit 4e34daf

Browse files
committed
Rollup merge of rust-lang#22908 - mdinger:fix_link, r=Gankro
The markdown listing the link in [StrExt::width](http://doc.rust-lang.org/std/str/trait.StrExt.html#tymethod.width) isn't being parsed properly. I'm expecting it's because the `[ ]` is across 2 lines so this changes that. This is untested though.
2 parents 4495bdb + 000e976 commit 4e34daf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcollections/str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,9 @@ pub trait StrExt: Index<RangeFull, Output = str> {
14551455
///
14561456
/// `is_cjk` determines behavior for characters in the Ambiguous category: if `is_cjk` is
14571457
/// `true`, these are 2 columns wide; otherwise, they are 1. In CJK locales, `is_cjk` should be
1458-
/// `true`, else it should be `false`. [Unicode Standard Annex
1459-
/// #11](http://www.unicode.org/reports/tr11/) recommends that these characters be treated as 1
1460-
/// column (i.e., `is_cjk` = `false`) if the locale is unknown.
1458+
/// `true`, else it should be `false`.
1459+
/// [Unicode Standard Annex #11](http://www.unicode.org/reports/tr11/) recommends that these
1460+
/// characters be treated as 1 column (i.e., `is_cjk = false`) if the locale is unknown.
14611461
#[unstable(feature = "collections",
14621462
reason = "this functionality may only be provided by libunicode")]
14631463
fn width(&self, is_cjk: bool) -> usize {

0 commit comments

Comments
 (0)