Hi,

On 04.10.2016 13:06, Francis (Grizzly) Smit wrote:
> in https://docs.perl6.org/type/Int#routine_expmod
> 
> it reads:
> 
> 
>     routine expmod <https://docs.perl6.org/type/Int#___top>
> 
> multi  sub     expmod(Int  $y,Int  $mod)returns  Int:D
> multi  method  expmod(Int:D:  Int  $y,Int  $mod)returns  Int:D
> 
> Returns the given |Int| raised to the |$y| power within modulus |$mod|.
> 
> say  expmod(4,2,5);# 1
> say  7.expmod(2,5);# 4
> 
> 
> Shouldn't the su form read:
> 
> multi  sub     expmod(Int:D $x,Int  $y,Int  $mod)returns  Int:D it needs 
> three parameters

Yes, that's right.

If you tell me your github username, I can give you access so that you
can change it directly on https://github.com/perl6/doc/.

Otherwise a pull request would be very welcome.

Cheers,
Moritz


-- 
Moritz Lenz
https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/

Reply via email to