Skip to content

Commit 442b029

Browse files
authored
Merge pull request #221 from PrototypeNM1/patch-1
Avoid using "into" when explaining `to_*`
2 parents 7e4dca3 + 13857fc commit 442b029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Conversions prefixed `as_` and `into_` typically _decrease abstraction_, either
9393
exposing a view into the underlying representation (`as`) or deconstructing data
9494
into its underlying representation (`into`). Conversions prefixed `to_`, on the
9595
other hand, typically stay at the same level of abstraction but do some work to
96-
change one representation into another.
96+
change from one representation to another.
9797

9898
When a type wraps a single value to associate it with higher-level semantics,
9999
access to the wrapped value should be provided by an `into_inner()` method. This

0 commit comments

Comments
 (0)