Browse Source

docs(cypher): correct grammar

DEV-3198-new-go-exercise-get-digit-len
davhojt 2 years ago committed by Dav Hojt
parent
commit
0a8bf22b4d
  1. 13
      subjects/cipher/README.md

13
subjects/cipher/README.md

@ -4,14 +4,9 @@
The Atbash cipher is an encryption method in which each letter of a word is replaced by its mirror letter in the alphabet.
Your objective is to create a **function** called `cipher` which must return a `Result` wrapped in an `Option`, this result should return either a `boolean`
or an `Error` based on the structure `CipherError`. This structure should be the error type for the **function** `cipher`.
Your objective is to create a **function** named `cipher` which must return a `Result` wrapped in an `Option`. The `Result` should contain either a `boolean` or and `Error` based on the `CipherError` structure. This structure should be the error type for the **function** `cipher`.
This function should compare the original `String` with the ciphered `String`. It should return `true` if the cipher is correct. If the cipher is incorrect it should return the error type `CipherErr` with a `boolean` and the expected atbash cipher `String`.
### Notions
- [Module std::fmt](https://doc.rust-lang.org/std/fmt/index.html)
`cipher` should compare the original `String` with the ciphered `String`. It should return `true` if the cipher is correct. If the cipher is incorrect it should return the error type `CipherErr` with a `boolean` and the expected atbash cipher `String`.
### Expected Function and structure
@ -54,3 +49,7 @@ Some(Err(CipherError { validation: false, expected: "1Svool 2dliow!" }))
None
$
```
### Notions
- [Module std::fmt](https://doc.rust-lang.org/std/fmt/index.html)

Loading…
Cancel
Save