Skip to content

Commit 1d37ed0

Browse files
Update README.md
1 parent 6260dae commit 1d37ed0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ Create a new playground in this repository called "CurrencyConverter"
3535
* Check the value of `currency` to see whether you should convert to CAD or MXN
3636
* Perform the conversion with the dollars passed into this method
3737
* Return the converted value
38-
6. Create a function called `convert(amountString: String) -> Double` In it, do the following:
38+
6. Create a function called `convert(amountString: String) -> String?` In it, do the following:
3939
* create a constant called `amount`. Its value should be the `amountString` that is initialized into a `Double`
4040
* use a `guard let` to unwrap the new `amount` constant.
4141
* convert the dollar amount to the expected currency (hint, you'll want to call the `convert` method you created in step 4
42+
7. Test your code by calling `convert(amountString` with some values. Change your `currency` to both `.cad` and `.mxn` to make sure the conversion works for both currencies.
43+
4244

4345
## Go Further (Optional)
4446

0 commit comments

Comments
 (0)