Re: think I found a bug in the doc's

2016-10-04 Thread Moritz Lenz
Hi,

On 04.10.2016 13:06, Francis (Grizzly) Smit wrote:
> in https://docs.perl6.org/type/Int#routine_expmod
> 
> it reads:
> 
> 
> routine expmod 
> 
> 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/


think I found a bug in the doc's

2016-10-04 Thread Francis (Grizzly) Smit

in https://docs.perl6.org/type/Int#routine_expmod

it reads:


   routine expmod 

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



--

   .~. In my life God comes first
   /V\ but Linux is pretty high after that :-D
  /( )\Francis (Grizzly) Smit
  ^^-^^http://www.smit.id.au/
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GM/CS/H/P/S/IT/L d- s+:+ a++ C UL$ P+++ L+++$ E--- W+++
N w--- M-- V-- PE- PGP t+ 5-- X-- R- tv b DI(+) D-
G e++ h+ y? r% z---
--END GEEK CODE BLOCK--
http://www.geekcode.com/