Skip to content

Commit 7d626e9

Browse files
committed
doc: small char improvements
1 parent 235d774 commit 7d626e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mod prim_bool { }
7777
/// # Representation
7878
///
7979
/// `char` is always four bytes in size. This is a different representation than
80-
/// a given character would have as part of a [`String`], for example:
80+
/// a given character would have as part of a [`String`]. For example:
8181
///
8282
/// ```
8383
/// let v = vec!['h', 'e', 'l', 'l', 'o'];
@@ -116,8 +116,8 @@ mod prim_bool { }
116116
/// ^~
117117
/// ```
118118
///
119-
/// Another implication of the 4-byte fixed size of a `char`, is that
120-
/// per-`char`acter processing can end up using a lot more memory:
119+
/// Another implication of the 4-byte fixed size of a `char` is that
120+
/// per-`char` processing can end up using a lot more memory:
121121
///
122122
/// ```
123123
/// let s = String::from("love: ❤️");

0 commit comments

Comments
 (0)