@@ -1515,6 +1515,13 @@ impl str {
1515
1515
/// 'Whitespace' is defined according to the terms of the Unicode Derived
1516
1516
/// Core Property `White_Space`.
1517
1517
///
1518
+ /// # Text directionality
1519
+ ///
1520
+ /// A string is a sequence of bytes. 'Left' in this context means the first
1521
+ /// position of that byte string; for a language like Arabic or Hebrew
1522
+ /// which are 'right to left' rather than 'left to right', this will be
1523
+ /// the _right_ side, not the left.
1524
+ ///
1518
1525
/// # Examples
1519
1526
///
1520
1527
/// Basic usage:
@@ -1534,6 +1541,13 @@ impl str {
1534
1541
/// 'Whitespace' is defined according to the terms of the Unicode Derived
1535
1542
/// Core Property `White_Space`.
1536
1543
///
1544
+ /// # Text directionality
1545
+ ///
1546
+ /// A string is a sequence of bytes. 'Right' in this context means the last
1547
+ /// position of that byte string; for a language like Arabic or Hebrew
1548
+ /// which are 'right to left' rather than 'left to right', this will be
1549
+ /// the _left_ side, not the right.
1550
+ ///
1537
1551
/// # Examples
1538
1552
///
1539
1553
/// Basic usage:
@@ -1588,6 +1602,13 @@ impl str {
1588
1602
///
1589
1603
/// [`char`]: primitive.char.html
1590
1604
///
1605
+ /// # Text directionality
1606
+ ///
1607
+ /// A string is a sequence of bytes. 'Left' in this context means the first
1608
+ /// position of that byte string; for a language like Arabic or Hebrew
1609
+ /// which are 'right to left' rather than 'left to right', this will be
1610
+ /// the _right_ side, not the left.
1611
+ ///
1591
1612
/// # Examples
1592
1613
///
1593
1614
/// Basic usage:
@@ -1612,6 +1633,13 @@ impl str {
1612
1633
///
1613
1634
/// [`char`]: primitive.char.html
1614
1635
///
1636
+ /// # Text directionality
1637
+ ///
1638
+ /// A string is a sequence of bytes. 'Right' in this context means the last
1639
+ /// position of that byte string; for a language like Arabic or Hebrew
1640
+ /// which are 'right to left' rather than 'left to right', this will be
1641
+ /// the _left_ side, not the right.
1642
+ ///
1615
1643
/// # Examples
1616
1644
///
1617
1645
/// Simple patterns:
0 commit comments