Skip to content

first commit#1

Open
voidwesome wants to merge 1 commit intomainfrom
first-iteration
Open

first commit#1
voidwesome wants to merge 1 commit intomainfrom
first-iteration

Conversation

@voidwesome
Copy link
Owner

No description provided.

Copy link

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

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

Привет Борис

отличная работа - зачет

func (t Training) meanSpeed() float64 {
// вставьте ваш код ниже
...
if t.Duration.Hours() == 0 {
Copy link

Choose a reason for hiding this comment

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

отлично избежал деления на 0

func (s Swimming) meanSpeed() float64 {
// вставьте ваш код ниже
...
return float64(float64(s.LengthPool) * float64(s.CountPool) / MInKm / s.Duration.Hours())
Copy link

Choose a reason for hiding this comment

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

тут возможно деление на 0

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