hi, first PR ,so sorry in advance.
the introduction file of this exercise used the comment sign “#” to show the methods of the float and integer functions, which made it really confusing, i made a PR fixing the typo
thank you.
hi, first PR ,so sorry in advance.
the introduction file of this exercise used the comment sign “#” to show the methods of the float and integer functions, which made it really confusing, i made a PR fixing the typo
thank you.
It is definitely not a typographical error, if we were to use your change we would change the meaning of those lines.
The instance methods are what the Integer#to_f
indicates, while Integer.to_f
would indicate a class method. Even though the documentation states that “These classes have”, the syntax clarifies at what depth.
I am aware that above the example code the paragraph states:
These classes have methods that will coerce values from one to the other.
The classes do have methods that will coerce, but those are at a “secondary” level, or at the instance level.
It is a detail that is important, but generally translates well, the details are in the tests enforcing the instance level methods.