Skip to content

Commit f2e1d5f

Browse files
committed
rustdoc: change "variadic tuple" notation to look less like real syntax
1 parent afb4915 commit f2e1d5f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

core/src/primitive_docs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,10 @@ mod prim_str {}
918918
// linked to as `#trait-implementations-1`
919919
/// # Trait implementations
920920
///
921-
/// In this documentation the shorthand `(T, ...)` is used to represent tuples of varying length.
922-
/// When that is used, any trait bound expressed on `T` applies to each element of the tuple
923-
/// independently. Note that this is a convenience notation to avoid repetitive documentation,
924-
/// not valid Rust syntax.
921+
/// In this documentation the shorthand `(T₁, T₂, …, Tₙ)` is used to represent tuples of varying
922+
/// length. When that is used, any trait bound expressed on `T` applies to each element of the
923+
/// tuple independently. Note that this is a convenience notation to avoid repetitive
924+
/// documentation, not valid Rust syntax.
925925
///
926926
/// Due to a temporary restriction in Rust’s type system, the following traits are only
927927
/// implemented on tuples of arity 12 or less. In the future, this may change:

std/src/primitive_docs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,10 @@ mod prim_str {}
918918
// linked to as `#trait-implementations-1`
919919
/// # Trait implementations
920920
///
921-
/// In this documentation the shorthand `(T, ...)` is used to represent tuples of varying length.
922-
/// When that is used, any trait bound expressed on `T` applies to each element of the tuple
923-
/// independently. Note that this is a convenience notation to avoid repetitive documentation,
924-
/// not valid Rust syntax.
921+
/// In this documentation the shorthand `(T₁, T₂, …, Tₙ)` is used to represent tuples of varying
922+
/// length. When that is used, any trait bound expressed on `T` applies to each element of the
923+
/// tuple independently. Note that this is a convenience notation to avoid repetitive
924+
/// documentation, not valid Rust syntax.
925925
///
926926
/// Due to a temporary restriction in Rust’s type system, the following traits are only
927927
/// implemented on tuples of arity 12 or less. In the future, this may change:

0 commit comments

Comments
 (0)