From b2499e54a5791ad7d8041976030bb5f58e224f68 Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Tue, 27 Sep 2022 11:08:59 +0100 Subject: [PATCH] style(podiumposition): format text --- subjects/podiumposition/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/podiumposition/README.md b/subjects/podiumposition/README.md index a9e9f74a..2ef75fb3 100644 --- a/subjects/podiumposition/README.md +++ b/subjects/podiumposition/README.md @@ -5,12 +5,12 @@ A F1 race just finished and the commentator is calling the finishing positions incorrectly. Help to fix this before the contestants arrive at the podium by providing the commentator with the correct podium position. -Write a function `PodiumPosition` that takes an array of arrays of type `string` and returns the competitor positions correctly. +Write a function `PodiumPosition` that takes a slice of slices of type `string` and returns the competitor positions correctly. ### Expected function ```go -func PodiumPosition(podium[][] string) [][]string { +func PodiumPosition(podium [][]string) [][]string { } ``` @@ -23,13 +23,13 @@ Here is a possible program to test your function: package main import ( - "fmt" - "piscine" + "fmt" + "piscine" ) func main() { - position := [][]string{{"4th Place"}, {"3rd Place"}, {"2nd Place"}, {"1st Place"}} - fmt.Println(piscine.PodiumPosition(position)) + position := [][]string{{"4th Place"}, {"3rd Place"}, {"2nd Place"}, {"1st Place"}} + fmt.Println(piscine.PodiumPosition(position)) } ```