Skip to content

Commit e4ed201

Browse files
committed
Fix rountrips typo in several places
1 parent e6bc873 commit e4ed201

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@ impl Literal {
11281128
/// This constructor is similar to those like `Literal::i8_unsuffixed` where
11291129
/// the float's value is emitted directly into the token but no suffix is
11301130
/// used, so it may be inferred to be a `f64` later in the compiler.
1131-
/// Literals created from negative numbers may not survive rountrips through
1132-
/// `TokenStream` or strings and may be broken into two tokens (`-` and
1133-
/// positive literal).
1131+
/// Literals created from negative numbers may not survive round-trips
1132+
/// through `TokenStream` or strings and may be broken into two tokens (`-`
1133+
/// and positive literal).
11341134
///
11351135
/// # Panics
11361136
///
@@ -1147,7 +1147,7 @@ impl Literal {
11471147
/// specified is the preceding part of the token and `f64` is the suffix of
11481148
/// the token. This token will always be inferred to be an `f64` in the
11491149
/// compiler. Literals created from negative numbers may not survive
1150-
/// rountrips through `TokenStream` or strings and may be broken into two
1150+
/// round-trips through `TokenStream` or strings and may be broken into two
11511151
/// tokens (`-` and positive literal).
11521152
///
11531153
/// # Panics
@@ -1164,9 +1164,9 @@ impl Literal {
11641164
/// This constructor is similar to those like `Literal::i8_unsuffixed` where
11651165
/// the float's value is emitted directly into the token but no suffix is
11661166
/// used, so it may be inferred to be a `f64` later in the compiler.
1167-
/// Literals created from negative numbers may not survive rountrips through
1168-
/// `TokenStream` or strings and may be broken into two tokens (`-` and
1169-
/// positive literal).
1167+
/// Literals created from negative numbers may not survive round-trips
1168+
/// through `TokenStream` or strings and may be broken into two tokens (`-`
1169+
/// and positive literal).
11701170
///
11711171
/// # Panics
11721172
///
@@ -1183,7 +1183,7 @@ impl Literal {
11831183
/// specified is the preceding part of the token and `f32` is the suffix of
11841184
/// the token. This token will always be inferred to be an `f32` in the
11851185
/// compiler. Literals created from negative numbers may not survive
1186-
/// rountrips through `TokenStream` or strings and may be broken into two
1186+
/// round-trips through `TokenStream` or strings and may be broken into two
11871187
/// tokens (`-` and positive literal).
11881188
///
11891189
/// # Panics

0 commit comments

Comments
 (0)