@@ -368,15 +368,15 @@ impl<LenT: LenType, S: StringStorage + ?Sized> StringInner<LenT, S> {
368
368
/// ```rust
369
369
/// # use heapless::string::{String, StringView};
370
370
/// let s: String<10, _> = String::try_from("hello").unwrap();
371
- /// let view: &StringView<u8> = s.as_view();
371
+ /// let view: &StringView = s.as_view();
372
372
/// ```
373
373
///
374
374
/// It is often preferable to do the same through type coerction, since `String<N>` implements `Unsize<StringView>`:
375
375
///
376
376
/// ```rust
377
377
/// # use heapless::string::{String, StringView};
378
378
/// let s: String<10, _> = String::try_from("hello").unwrap();
379
- /// let view: &StringView<u8> = &s;
379
+ /// let view: &StringView = &s;
380
380
/// ```
381
381
#[ inline]
382
382
pub fn as_view ( & self ) -> & StringView < LenT > {
@@ -389,15 +389,15 @@ impl<LenT: LenType, S: StringStorage + ?Sized> StringInner<LenT, S> {
389
389
/// ```rust
390
390
/// # use heapless::string::{String, StringView};
391
391
/// let mut s: String<10> = String::try_from("hello").unwrap();
392
- /// let view: &mut StringView<_> = s.as_mut_view();
392
+ /// let view: &mut StringView = s.as_mut_view();
393
393
/// ```
394
394
///
395
395
/// It is often preferable to do the same through type coerction, since `String<N>` implements `Unsize<StringView>`:
396
396
///
397
397
/// ```rust
398
398
/// # use heapless::string::{String, StringView};
399
399
/// let mut s: String<10> = String::try_from("hello").unwrap();
400
- /// let view: &mut StringView<_> = &mut s;
400
+ /// let view: &mut StringView = &mut s;
401
401
/// ```
402
402
#[ inline]
403
403
pub fn as_mut_view ( & mut self ) -> & mut StringView < LenT > {
0 commit comments