We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd87c0 commit fccc55dCopy full SHA for fccc55d
chapter06/example_split_temporary_variable.rb
@@ -6,8 +6,8 @@ def distance_traveled(time)
6
secondary_time = time - @delay
7
if (secondary_time > 0)
8
primary_vel = primary_acc * @delay
9
- acc = (@prmary_force + @secondary_force) / @mass
10
- result += primary_vel * secondary_time + 5 * acc * secondary_time * secondary_time
+ secondary_acc = (@prmary_force + @secondary_force) / @mass
+ result += primary_vel * secondary_time + 5 * secondary_acc * secondary_time * secondary_time
11
end
12
result
13
0 commit comments