Skip to content

Commit f9a45a6

Browse files
committed
fix: lint typos
1 parent fddfb40 commit f9a45a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dnacoder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func encodeTernaryToDNA(ternaryStr string) string {
4040
previousNucleotide := byte('A')
4141

4242
for _, tritChar := range ternaryStr {
43-
trit := tritChar - '0' // Convert to integer
43+
trit := tritChar - '0' // Convert to integer
4444
nextNucleotide := lookupTable[previousNucleotide][trit]
4545
dnaSeq.WriteByte(nextNucleotide)
4646
previousNucleotide = nextNucleotide
@@ -70,7 +70,7 @@ func decodeDNAToTernary(dnaSeq string) (string, error) {
7070

7171
func encode(data []byte) string {
7272
ternaryStr := byteArrayToTernary([]byte(data))
73-
return encodeTernaryToDNA(ternaryStr)
73+
return encodeTernaryToDNA(ternaryStr)
7474
}
7575

7676
func decode(dnaSeq string) ([]byte, error) {

0 commit comments

Comments
 (0)