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

Update README.md #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Create a new playground in this repository called "CurrencyConverter"
* Perform the conversion with the dollars passed into this method
* Return the converted value
6. Create a function called `convert(amountString: String) -> String?` In it, do the following:
* create a constant called `amount`. Its value should be the `amountString` that is initialized into a `Double`
* create a constant called `amount`. Its value should be a `Double` that is initialized from the `amountString` passed in
* use a `guard let` to unwrap the new `amount` constant.
* convert the dollar amount to the expected currency (hint, you'll want to call the `convert` method you created in step 4
7. Test your code by calling `convert(amountString` with some values. Change your `currency` to both `.cad` and `.mxn` (by manually changing the value of your `currency` variable above) to make sure the conversion works for both currencies.
Expand Down