Skip to content

Homework 3#4

Open
abercromb wants to merge 3 commits intomasterfrom
lesson3
Open

Homework 3#4
abercromb wants to merge 3 commits intomasterfrom
lesson3

Conversation

@abercromb
Copy link
Owner

No description provided.

case add, get;
}

struct sportCar {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с большой буквы SportCar

mutating func changeVolume(action: VolumeAction, count: Double){
switch action {
case .add:

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пустая строка


mutating func changeVolume(action: VolumeAction, count: Double){
switch action {
case .add:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно так
case .add where volumeState == .full:
и тогда if не нужен

}


struct truckCar {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с БольшойБуквы

}
}

break;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в Swift break не нужен

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants