Skip to content

Commit 45ea271

Browse files
authored
Merge pull request #16 from T3pp31/codex/replace-processing-in-decrypt_safe
refactor: decrypt_safeで復号処理をdecryptへ集約
2 parents f21e486 + 9681375 commit 45ea271

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/caesar_cipher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ pub fn encrypt_safe(text: &str, shift: i16) -> Result<String, CipherError> {
158158
/// Decrypts text using Caesar cipher with error handling
159159
///
160160
/// This function validates input values and returns an error for invalid inputs.
161-
/// Validates shift range before negation to prevent integer overflow.
161+
/// Internally uses `decrypt` after validation, so fixes in `decrypt`
162+
/// are automatically reflected in this safe API.
162163
///
163164
/// # Arguments
164165
///

0 commit comments

Comments
 (0)