From a134549c7560ac91e849c2173e746e0fec12ea11 Mon Sep 17 00:00:00 2001 From: Matt Jones Kelley Date: Tue, 10 Dec 2024 22:28:57 -0500 Subject: [PATCH] Update instructions.md original instructions made it seem extra step was needed (signal an error rather than return empty string). also updated expected output --- exercises/practice/nucleotide-count/.docs/instructions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/practice/nucleotide-count/.docs/instructions.md b/exercises/practice/nucleotide-count/.docs/instructions.md index 548d9ba5a..55b1b6c22 100644 --- a/exercises/practice/nucleotide-count/.docs/instructions.md +++ b/exercises/practice/nucleotide-count/.docs/instructions.md @@ -13,11 +13,11 @@ We represent a DNA sequence as an ordered collection of these four nucleotides a 'A' for adenine, 'C' for cytosine, 'G' for guanine, and 'T' for thymine. Given a string representing a DNA sequence, count how many of each nucleotide is present. -If the string contains characters that aren't A, C, G, or T then it is invalid and you should signal an error. +If the string contains characters that aren't A, C, G, or T then it is invalid. For example: ```text -"GATTACA" -> 'A': 3, 'C': 1, 'G': 1, 'T': 2 -"INVALID" -> error +"GATTACA" -> "A:3 C:1 G:1 T:2" +"INVALID" -> "" ```