From 4f857a945ef0484df66bbfb24922814d67b87d17 Mon Sep 17 00:00:00 2001 From: Sugui Date: Fri, 21 Jun 2024 14:56:54 +0200 Subject: [PATCH 1/2] Added example of 1-ary tuple type --- src/types/tuple.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/tuple.md b/src/types/tuple.md index df21e1cdf..7d92f51e6 100644 --- a/src/types/tuple.md +++ b/src/types/tuple.md @@ -27,6 +27,7 @@ Its one value is also called *unit* or *the unit value*. Some examples of tuple types: * `()` (unit) +* `(i32, )` (1-ary tuple) * `(f64, f64)` * `(String, i32)` * `(i32, String)` (different type from the previous example) From 48134441141b6ba5da5b903ce0a3073600906ca6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 21 Jun 2024 07:39:46 -0700 Subject: [PATCH 2/2] Remove 1-ary space This follows the formatting standards of rustfmt and rustc. --- src/types/tuple.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/tuple.md b/src/types/tuple.md index 7d92f51e6..804d8a0ae 100644 --- a/src/types/tuple.md +++ b/src/types/tuple.md @@ -27,7 +27,7 @@ Its one value is also called *unit* or *the unit value*. Some examples of tuple types: * `()` (unit) -* `(i32, )` (1-ary tuple) +* `(i32,)` (1-ary tuple) * `(f64, f64)` * `(String, i32)` * `(i32, String)` (different type from the previous example)