@@ -191,12 +191,7 @@ impl OsString {
191
191
/// OS strings without reallocating. If `capacity` is 0, the string will not
192
192
/// allocate.
193
193
///
194
- /// See main `OsString` documentation information about encoding.
195
- ///
196
- /// # Notes
197
- ///
198
- /// Capacity means UTF-8 byte size for OS strings which created from
199
- /// valid unicode, and not otherwise specified for other contents.
194
+ /// See the main `OsString` documentation information about encoding and capacity units.
200
195
///
201
196
/// # Examples
202
197
///
@@ -239,12 +234,7 @@ impl OsString {
239
234
240
235
/// Returns the capacity this `OsString` can hold without reallocating.
241
236
///
242
- /// See `OsString` introduction for information about encoding.
243
- ///
244
- /// # Notes
245
- ///
246
- /// Capacity means UTF-8 byte size for OS strings which created from
247
- /// valid unicode, and not otherwise specified for other contents.
237
+ /// See the main `OsString` documentation information about encoding and capacity units.
248
238
///
249
239
/// # Examples
250
240
///
@@ -266,6 +256,8 @@ impl OsString {
266
256
///
267
257
/// The collection may reserve more space to avoid frequent reallocations.
268
258
///
259
+ /// See the main `OsString` documentation information about encoding and capacity units.
260
+ ///
269
261
/// # Examples
270
262
///
271
263
/// ```
@@ -287,10 +279,7 @@ impl OsString {
287
279
/// greater than or equal to `self.len() + additional`. Does nothing if
288
280
/// capacity is already sufficient.
289
281
///
290
- /// # Notes
291
- ///
292
- /// Capacity means UTF-8 byte size for OS strings which created from
293
- /// valid unicode, and not otherwise specified for other contents.
282
+ /// See the main `OsString` documentation information about encoding and capacity units.
294
283
///
295
284
/// # Errors
296
285
///
@@ -333,10 +322,7 @@ impl OsString {
333
322
///
334
323
/// [`reserve`]: OsString::reserve
335
324
///
336
- /// # Notes
337
- ///
338
- /// Capacity means UTF-8 byte size for OS strings which created from
339
- /// valid unicode, and not otherwise specified for other contents.
325
+ /// See the main `OsString` documentation information about encoding and capacity units.
340
326
///
341
327
/// # Examples
342
328
///
@@ -365,10 +351,7 @@ impl OsString {
365
351
///
366
352
/// [`try_reserve`]: OsString::try_reserve
367
353
///
368
- /// # Notes
369
- ///
370
- /// Capacity means UTF-8 byte size for OS strings which created from
371
- /// valid unicode, and not otherwise specified for other contents.
354
+ /// See the main `OsString` documentation information about encoding and capacity units.
372
355
///
373
356
/// # Errors
374
357
///
@@ -403,6 +386,8 @@ impl OsString {
403
386
404
387
/// Shrinks the capacity of the `OsString` to match its length.
405
388
///
389
+ /// See the main `OsString` documentation information about encoding and capacity units.
390
+ ///
406
391
/// # Examples
407
392
///
408
393
/// ```
@@ -429,10 +414,7 @@ impl OsString {
429
414
///
430
415
/// If the current capacity is less than the lower limit, this is a no-op.
431
416
///
432
- /// # Notes
433
- ///
434
- /// Capacity means UTF-8 byte size for OS strings which created from
435
- /// valid unicode, and not otherwise specified for other contents.
417
+ /// See the main `OsString` documentation information about encoding and capacity units.
436
418
///
437
419
/// # Examples
438
420
///
@@ -808,6 +790,8 @@ impl OsStr {
808
790
/// This number is simply useful for passing to other methods, like
809
791
/// [`OsString::with_capacity`] to avoid reallocations.
810
792
///
793
+ /// See the main `OsString` documentation information about encoding and capacity units.
794
+ ///
811
795
/// # Examples
812
796
///
813
797
/// ```
0 commit comments