From ef7998951de0c1f474192f90f040ff8acc2294ea Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 9 Dec 2023 10:25:43 -0800 Subject: [PATCH] Fix up comment length and text, and generate public/ --- examples/generics/generics.sh | 6 +++--- public/generics | 17 +++++++++++++++-- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/examples/generics/generics.sh b/examples/generics/generics.sh index 0695f4f67..4a3f2274e 100644 --- a/examples/generics/generics.sh +++ b/examples/generics/generics.sh @@ -2,6 +2,6 @@ $ go run generics.go keys: [4 1 2] list: [10 13 23] -# Note: The order of iteration over map keys is not defined in Go, -# so different invocations may result in different orders. -# The output need not necessarily be keys: [1 2 4]. \ No newline at end of file +# Note: The order of iteration over map keys is not +# defined in Go, so different invocations may +# result in different orders. diff --git a/public/generics b/public/generics index adee89770..c577e1afc 100644 --- a/public/generics +++ b/public/generics @@ -205,7 +205,7 @@ automatically.

- +
$ go run generics.go
 keys: [4 1 2]
@@ -213,6 +213,19 @@ automatically.

+ + +

Note: The order of iteration over map keys is not +defined in Go, so different invocations may +result in different orders.

+ + + + + + + + @@ -228,7 +241,7 @@ automatically.