Skip to content

Commit 60af947

Browse files
Fix fmt of comments
1 parent 1063963 commit 60af947

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/string.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl<const N: usize> String<N> {
107107
/// ```rust
108108
/// # use heapless::string::{String, StringView};
109109
/// let s: String<12> = String::try_from("Hello").unwrap();
110-
/// let view: &StringView = &s;
110+
/// let view: &StringView = &s;
111111
/// ```
112112
pub fn as_view(&self) -> &StringView {
113113
self
@@ -126,7 +126,7 @@ impl<const N: usize> String<N> {
126126
/// ```rust
127127
/// # use heapless::string::{String, StringView};
128128
/// let mut s: String<12> = String::try_from("Hello").unwrap();
129-
/// let view: &mut StringView = &mut s;
129+
/// let view: &mut StringView = &mut s;
130130
/// ```
131131
pub fn as_mut_view(&mut self) -> &mut StringView {
132132
self
@@ -590,7 +590,7 @@ impl StringView {
590590
/// Basic usage:
591591
///
592592
/// ```
593-
/// use heapless::string::{String,StringView};
593+
/// use heapless::string::{String, StringView};
594594
///
595595
/// let mut s: String<8> = String::try_from("hello")?;
596596
/// let s: &mut StringView = &mut s;
@@ -615,7 +615,7 @@ impl StringView {
615615
/// Basic usage:
616616
///
617617
/// ```
618-
/// use heapless::string::{String,StringView};
618+
/// use heapless::string::{String, StringView};
619619
///
620620
/// let mut s: String<8> = String::try_from("foo")?;
621621
/// let s: &mut StringView = &mut s;
@@ -640,7 +640,7 @@ impl StringView {
640640
/// Basic usage:
641641
///
642642
/// ```
643-
/// use heapless::string::{String,StringView};
643+
/// use heapless::string::{String, StringView};
644644
///
645645
/// let s: String<4> = String::new();
646646
/// let s: &StringView = &s;
@@ -658,7 +658,7 @@ impl StringView {
658658
/// Basic usage:
659659
///
660660
/// ```
661-
/// use heapless::string::{String,StringView};
661+
/// use heapless::string::{String, StringView};
662662
///
663663
/// let mut s: String<8> = String::try_from("abc")?;
664664
/// let s: &mut StringView = &mut s;
@@ -700,7 +700,7 @@ impl StringView {
700700
/// Basic usage:
701701
///
702702
/// ```
703-
/// use heapless::string::{String,StringView};
703+
/// use heapless::string::{String, StringView};
704704
///
705705
/// let mut s: String<8> = String::try_from("hello")?;
706706
/// let s: &mut StringView = &mut s;
@@ -727,7 +727,7 @@ impl StringView {
727727
/// Basic usage:
728728
///
729729
/// ```
730-
/// use heapless::string::{String,StringView};
730+
/// use heapless::string::{String, StringView};
731731
///
732732
/// let mut s: String<8> = String::try_from("foo")?;
733733
/// let s: &mut StringView = &mut s;
@@ -767,7 +767,7 @@ impl StringView {
767767
/// Basic usage:
768768
///
769769
/// ```
770-
/// use heapless::string::{String,StringView};
770+
/// use heapless::string::{String, StringView};
771771
///
772772
/// let mut s: String<8> = String::try_from("foo").unwrap();
773773
/// let s: &mut StringView = &mut s;

0 commit comments

Comments
 (0)