Skip to content

Commit

Permalink
Update rna-transcription parameter name (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Aug 14, 2024
1 parent 505166a commit cd81e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/rna-transcription/.meta/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ public static class RnaTranscription
{ 'G', 'C' }, { 'C', 'G' }, { 'T', 'A' }, { 'A', 'U' }
};

public static string ToRna(string nucleotide)
public static string ToRna(string strand)
{
if (nucleotide.Any(x => !DnaToRna.ContainsKey(x)))
if (strand.Any(x => !DnaToRna.ContainsKey(x)))
{
throw new ArgumentException("invalid nucleotide");
}

return string.Concat(nucleotide.Select(x => DnaToRna[x]));
return string.Concat(strand.Select(x => DnaToRna[x]));
}
}
2 changes: 1 addition & 1 deletion exercises/practice/rna-transcription/RnaTranscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public static class RnaTranscription
{
public static string ToRna(string nucleotide)
public static string ToRna(string strand)
{
throw new NotImplementedException("You need to implement this method.");
}
Expand Down

0 comments on commit cd81e9d

Please sign in to comment.