From 8647521af3dd6120ff86e9200df61279e3c9dfa2 Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Mon, 3 Oct 2022 16:36:02 +0100 Subject: [PATCH] docs(dealapackofcards): refactor instructions, fix indentation --- subjects/dealapackofcards/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/dealapackofcards/README.md b/subjects/dealapackofcards/README.md index b651ccbfc..7f31181a8 100644 --- a/subjects/dealapackofcards/README.md +++ b/subjects/dealapackofcards/README.md @@ -4,7 +4,7 @@ Deal a pack of `12` cards evenly between 4 players, `Player 1`, `Player 2`, `Player 3` and `Player 4`. -Write a function `DealAPackOfCards()` that takes an argument `deck` as an `int` and prints the desired output. +Write a function `DealAPackOfCards()` that takes the argument, `deck`, as a slice of `int` and prints the desired output. - Each player must be printed in a different line. @@ -27,13 +27,13 @@ import "piscine" func main() { deck := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} - piscine.DealAPackOfCards(deck) + piscine.DealAPackOfCards(deck) } ``` And its output: -```go +```console $ go run . | cat -e Player 1: 1, 2, 3$ Player 2: 4, 5, 6$