Raku / doc

🦋 Raku documentation
https://docs.raku.org/
Artistic License 2.0
287 stars 292 forks source link

Polymod Real examples have strayed into the Int section #4446

Closed librasteve closed 5 months ago

librasteve commented 5 months ago

Problem or new feature

On this page - https://docs.raku.org/routine/polymod

These examples:

say ⅔.polymod(⅓);                            # OUTPUT: «(0 2)␤» 
say 5.Rat.polymod(.3, .2);                   # OUTPUT: «(0.2 0 80)␤» 

Do not match the signature of the Int variant of the method polymod: method polymod(Int:D: +@mods)

Suggestions

However they do match the signature of the Real variant: method polymod(Real:D: +@mods)

Therefore I propose that these examples are moved from tthe Int section to the Real section