Skip to content

Commit fb4f25c

Browse files
committed
Tweak wording to recommend, but not require round-tripping
1 parent c380963 commit fb4f25c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

text/0000-show-stabilization.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ As described in the motivation section, the intended use cases for the current
5454
`Show` trait are actually motivations for two separate formatting traits. One
5555
trait will be intended for all Rust types to implement in order to easily allow
5656
debugging values for macros such as `assert_eq!` or general `println!`
57-
statements. A separate trait will be intended for Rust types which are "round
58-
trippable" from a string. These types can be represented as a string in a
59-
non-lossy fashion and are intended for general consumption by more than just
60-
developers.
57+
statements. A separate trait will be intended for Rust types which are
58+
faithfully represented as a string. These types can be represented as a string
59+
in a non-lossy fashion and are intended for general consumption by more than
60+
just developers.
6161

6262
This RFC proposes naming these two traits `Show` and `String`, respectively.
6363

@@ -77,7 +77,8 @@ the default specifier for Rust.
7777

7878
An implementation of the `String` trait is an assertion that the type can be
7979
faithfully represented as a UTF-8 string at all times. If the type can be
80-
reconstructed from a string, then the following relation must be true:
80+
reconstructed from a string, then it is recommended, but not required, that the
81+
following relation be true:
8182

8283
```rust
8384
assert_eq!(foo, from_str(format!("{}", foo).as_slice()).unwrap());

0 commit comments

Comments
 (0)