Kindle location 1684
Text above the code says to
"Add an instance method for multiplying a vector by a scalar:"
but the code adds two vectors together.
Kindle location 1684
Text above the code says to
"Add an instance method for multiplying a vector by a scalar:"
but the code adds two vectors together.
Right you are. Thank you!
Along with that error is another right below the code example that says:
"It takes a single parameter of type Double …"
That should be “of type Vector”