@@ -476,6 +476,7 @@ Section: Iterators
476
476
/// This struct is created by the [`chars`] method on [`str`].
477
477
/// See its documentation for more.
478
478
///
479
+ /// [`char`]: prim@char
479
480
/// [`chars`]: str::chars
480
481
#[ derive( Clone ) ]
481
482
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -673,6 +674,7 @@ impl<'a> Chars<'a> {
673
674
/// This struct is created by the [`char_indices`] method on [`str`].
674
675
/// See its documentation for more.
675
676
///
677
+ /// [`char`]: prim@char
676
678
/// [`char_indices`]: str::char_indices
677
679
#[ derive( Clone , Debug ) ]
678
680
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -2270,6 +2272,8 @@ impl str {
2270
2272
/// This length is in bytes, not [`char`]s or graphemes. In other words,
2271
2273
/// it may not be what a human considers the length of the string.
2272
2274
///
2275
+ /// [`char`]: prim@char
2276
+ ///
2273
2277
/// # Examples
2274
2278
///
2275
2279
/// Basic usage:
@@ -2791,7 +2795,9 @@ impl str {
2791
2795
/// assert_eq!(None, chars.next());
2792
2796
/// ```
2793
2797
///
2794
- /// Remember, [`char`]s may not match your human intuition about characters:
2798
+ /// Remember, [`char`]s may not match your intuition about characters:
2799
+ ///
2800
+ /// [`char`]: prim@char
2795
2801
///
2796
2802
/// ```
2797
2803
/// let y = "y̆";
@@ -2842,7 +2848,9 @@ impl str {
2842
2848
/// assert_eq!(None, char_indices.next());
2843
2849
/// ```
2844
2850
///
2845
- /// Remember, [`char`]s may not match your human intuition about characters:
2851
+ /// Remember, [`char`]s may not match your intuition about characters:
2852
+ ///
2853
+ /// [`char`]: prim@char
2846
2854
///
2847
2855
/// ```
2848
2856
/// let yes = "y̆es";
@@ -3053,6 +3061,7 @@ impl str {
3053
3061
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3054
3062
/// function or closure that determines if a character matches.
3055
3063
///
3064
+ /// [`char`]: prim@char
3056
3065
/// [pattern]: self::pattern
3057
3066
///
3058
3067
/// # Examples
@@ -3079,6 +3088,7 @@ impl str {
3079
3088
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3080
3089
/// function or closure that determines if a character matches.
3081
3090
///
3091
+ /// [`char`]: prim@char
3082
3092
/// [pattern]: self::pattern
3083
3093
///
3084
3094
/// # Examples
@@ -3104,6 +3114,7 @@ impl str {
3104
3114
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3105
3115
/// function or closure that determines if a character matches.
3106
3116
///
3117
+ /// [`char`]: prim@char
3107
3118
/// [pattern]: self::pattern
3108
3119
///
3109
3120
/// # Examples
@@ -3132,6 +3143,7 @@ impl str {
3132
3143
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3133
3144
/// function or closure that determines if a character matches.
3134
3145
///
3146
+ /// [`char`]: prim@char
3135
3147
/// [pattern]: self::pattern
3136
3148
///
3137
3149
/// # Examples
@@ -3179,6 +3191,7 @@ impl str {
3179
3191
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3180
3192
/// function or closure that determines if a character matches.
3181
3193
///
3194
+ /// [`char`]: prim@char
3182
3195
/// [pattern]: self::pattern
3183
3196
///
3184
3197
/// # Examples
@@ -3225,6 +3238,7 @@ impl str {
3225
3238
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3226
3239
/// function or closure that determines if a character matches.
3227
3240
///
3241
+ /// [`char`]: prim@char
3228
3242
/// [pattern]: self::pattern
3229
3243
///
3230
3244
/// # Iterator behavior
@@ -3344,6 +3358,7 @@ impl str {
3344
3358
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3345
3359
/// function or closure that determines if a character matches.
3346
3360
///
3361
+ /// [`char`]: prim@char
3347
3362
/// [pattern]: self::pattern
3348
3363
///
3349
3364
/// # Examples
@@ -3383,6 +3398,7 @@ impl str {
3383
3398
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3384
3399
/// function or closure that determines if a character matches.
3385
3400
///
3401
+ /// [`char`]: prim@char
3386
3402
/// [pattern]: self::pattern
3387
3403
///
3388
3404
/// # Iterator behavior
@@ -3434,6 +3450,7 @@ impl str {
3434
3450
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3435
3451
/// function or closure that determines if a character matches.
3436
3452
///
3453
+ /// [`char`]: prim@char
3437
3454
/// [pattern]: self::pattern
3438
3455
///
3439
3456
/// Equivalent to [`split`], except that the trailing substring
@@ -3478,6 +3495,7 @@ impl str {
3478
3495
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3479
3496
/// function or closure that determines if a character matches.
3480
3497
///
3498
+ /// [`char`]: prim@char
3481
3499
/// [pattern]: self::pattern
3482
3500
///
3483
3501
/// Equivalent to [`split`], except that the trailing substring is
@@ -3526,6 +3544,7 @@ impl str {
3526
3544
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3527
3545
/// function or closure that determines if a character matches.
3528
3546
///
3547
+ /// [`char`]: prim@char
3529
3548
/// [pattern]: self::pattern
3530
3549
///
3531
3550
/// # Iterator behavior
@@ -3578,6 +3597,7 @@ impl str {
3578
3597
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3579
3598
/// function or closure that determines if a character matches.
3580
3599
///
3600
+ /// [`char`]: prim@char
3581
3601
/// [pattern]: self::pattern
3582
3602
///
3583
3603
/// # Iterator behavior
@@ -3666,6 +3686,7 @@ impl str {
3666
3686
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3667
3687
/// function or closure that determines if a character matches.
3668
3688
///
3689
+ /// [`char`]: prim@char
3669
3690
/// [pattern]: self::pattern
3670
3691
///
3671
3692
/// # Iterator behavior
@@ -3702,6 +3723,7 @@ impl str {
3702
3723
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3703
3724
/// function or closure that determines if a character matches.
3704
3725
///
3726
+ /// [`char`]: prim@char
3705
3727
/// [pattern]: self::pattern
3706
3728
///
3707
3729
/// # Iterator behavior
@@ -3743,6 +3765,7 @@ impl str {
3743
3765
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3744
3766
/// function or closure that determines if a character matches.
3745
3767
///
3768
+ /// [`char`]: prim@char
3746
3769
/// [pattern]: self::pattern
3747
3770
///
3748
3771
/// # Iterator behavior
@@ -3785,6 +3808,7 @@ impl str {
3785
3808
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
3786
3809
/// function or closure that determines if a character matches.
3787
3810
///
3811
+ /// [`char`]: prim@char
3788
3812
/// [pattern]: self::pattern
3789
3813
///
3790
3814
/// # Iterator behavior
@@ -4003,6 +4027,7 @@ impl str {
4003
4027
/// The [pattern] can be a [`char`], a slice of [`char`]s, or a function
4004
4028
/// or closure that determines if a character matches.
4005
4029
///
4030
+ /// [`char`]: prim@char
4006
4031
/// [pattern]: self::pattern
4007
4032
///
4008
4033
/// # Examples
@@ -4050,6 +4075,7 @@ impl str {
4050
4075
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4051
4076
/// function or closure that determines if a character matches.
4052
4077
///
4078
+ /// [`char`]: prim@char
4053
4079
/// [pattern]: self::pattern
4054
4080
///
4055
4081
/// # Text directionality
@@ -4094,6 +4120,7 @@ impl str {
4094
4120
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4095
4121
/// function or closure that determines if a character matches.
4096
4122
///
4123
+ /// [`char`]: prim@char
4097
4124
/// [pattern]: self::pattern
4098
4125
///
4099
4126
/// # Examples
@@ -4121,6 +4148,7 @@ impl str {
4121
4148
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4122
4149
/// function or closure that determines if a character matches.
4123
4150
///
4151
+ /// [`char`]: prim@char
4124
4152
/// [pattern]: self::pattern
4125
4153
///
4126
4154
/// # Examples
@@ -4147,6 +4175,7 @@ impl str {
4147
4175
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4148
4176
/// function or closure that determines if a character matches.
4149
4177
///
4178
+ /// [`char`]: prim@char
4150
4179
/// [pattern]: self::pattern
4151
4180
///
4152
4181
/// # Text directionality
@@ -4195,6 +4224,7 @@ impl str {
4195
4224
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4196
4225
/// function or closure that determines if a character matches.
4197
4226
///
4227
+ /// [`char`]: prim@char
4198
4228
/// [pattern]: self::pattern
4199
4229
///
4200
4230
/// # Text directionality
@@ -4231,6 +4261,7 @@ impl str {
4231
4261
/// The [pattern] can be a `&str`, [`char`], a slice of [`char`]s, or a
4232
4262
/// function or closure that determines if a character matches.
4233
4263
///
4264
+ /// [`char`]: prim@char
4234
4265
/// [pattern]: self::pattern
4235
4266
///
4236
4267
/// # Text directionality
0 commit comments