From 58e482c05a9304d8446c979c2aa7c23a08843d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 13 Sep 2021 15:21:20 +0200 Subject: [PATCH] Fix hashset documentation. --- OpenRA.Mods.Common/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Util.cs b/OpenRA.Mods.Common/Util.cs index 54cbb0694d..2eb43ae95e 100644 --- a/OpenRA.Mods.Common/Util.cs +++ b/OpenRA.Mods.Common/Util.cs @@ -212,7 +212,7 @@ namespace OpenRA.Mods.Common public static string FriendlyTypeName(Type t) { if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>)) - return $"Set of {t.GetGenericArguments().Select(FriendlyTypeName).ToArray()}"; + return $"Set of {t.GetGenericArguments().Select(FriendlyTypeName).First()}"; if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Dictionary<,>)) {