From f4512e0ebeda41936a44df86003c3ee8f4580845 Mon Sep 17 00:00:00 2001
From: Gabrielle van de Vijver <gabrielle.van-de-vijver@etu.utc.fr>
Date: Sun, 5 Nov 2023 17:11:51 +0100
Subject: [PATCH] code editing

---
 comsoc/Majority.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/comsoc/Majority.go b/comsoc/Majority.go
index f35f70c..0b8ea77 100644
--- a/comsoc/Majority.go
+++ b/comsoc/Majority.go
@@ -7,12 +7,12 @@ func MajoritySWF(p Profile) (count Count, err error) {
 	if err != nil {
 		return nil, err
 	}
-//initialisation de la map : comptes à 0
-	count = make(Count,len(p))
+	//initialisation de la map : comptes à 0
+	count = make(Count)
 	for _,alt := range p[0]{
 		count[alt]=0
 	}
-//actualisation du compte à l'aide du scrutin
+	//actualisation du compte à l'aide du scrutin
 	for _, pref := range p {
 		count[pref[0]]++
 	}
-- 
GitLab