Skip to content

First iteration/second commit#1

Open
IgorLem99 wants to merge 3 commits intomainfrom
first-iteration
Open

First iteration/second commit#1
IgorLem99 wants to merge 3 commits intomainfrom
first-iteration

Conversation

@IgorLem99
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@ivannizh ivannizh left a comment

Choose a reason for hiding this comment

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

Привет!

Отличная работа! Осталось только исправить некоторые моменты, и задание будет принято.

Comment thread main.go
func (t Training) meanSpeed() float64 {
// вставьте ваш код ниже
...
return t.distance() / t.Duration.Hours()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Здесь необходимо обработать случай, когда значение длительности равно нулю. В этом случае функция должна возвращать ноль.

Copy link
Copy Markdown

@ivannizh ivannizh left a comment

Choose a reason for hiding this comment

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

Отлично, принято!

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