Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docs to morse_code. Modified mod.rs in ciphers to include decod… #78

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

scriptandcompile
Copy link
Contributor

…e as well as encode. We may need to rename these functions to make it clear way they are doing, or change the way the morse_code module is being included to make it clearer what the function names mean.

…e as well as encode. We may need to rename these functions to make it clear way they are doing, or change the way the morse_code module is being included to make it clearer what the function names mean.
Copy link
Owner

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change, otherwise LGTM!

Comment on lines +25 to +32
/// ```rust
/// use rust_algorithms::ciphers::encode;
///
/// let message = "Hello Morse";
/// let cipher = encode(message);
///
/// assert_eq!(cipher, ".... . .-.. .-.. --- / -- --- .-. ... .");
/// ```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you added this as a doc test, could you delete the corresponding test in mod tests?

@alexfertel alexfertel merged commit dbfef30 into alexfertel:main Jun 11, 2024
3 checks passed
@scriptandcompile scriptandcompile deleted the morse_code-docs branch June 13, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants