Skip to content

Commit

Permalink
Clarify constructor return types for RNA Transcription exercise (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnquintana authored Jun 2, 2023
1 parent 2b3d4f9 commit dd0ea4e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ string has a valid RNA string, we don't need to return a `Result`/`Option` from
`into_rna`.

This explains the type signatures you will see in the tests.

The return types of both `DNA::new()` and `RNA::new()` are `Result<Self, usize>`,
where the error type `usize` represents the index of the first invalid character
(char index, not utf8).

0 comments on commit dd0ea4e

Please sign in to comment.