Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Corrects code that would fail due to type mismatch #40

Merged
merged 1 commit into from
Jun 4, 2015

Conversation

kevindeleon
Copy link
Contributor

I know this probably seems nit-picky since this isn't a language reference, but it seems numberOfWheels should be converted to Float when doing the math here to get tire pressure. Otherwise, I'm loving this style guide!

I know this probably seems nit-picky since this isn't a language reference, but it seems numberOfWheels should be converted to Float when doing the math here to get tire pressure. Otherwise, I'm loving this style guide!
@robrix
Copy link
Contributor

robrix commented Jun 4, 2015

Good call: code samples should compile if at all possible.

I think this was written back in the days when Swift did type conversion, and never got updated.

robrix added a commit that referenced this pull request Jun 4, 2015
Corrects code that would fail due to type mismatch
@robrix robrix merged commit 63b35a8 into github:master Jun 4, 2015
@kevindeleon kevindeleon deleted the patch-1 branch June 4, 2015 13:45
niwatako pushed a commit to niwatako/swift-style-guide that referenced this pull request Mar 31, 2016
Corrects code that would fail due to type mismatch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants