This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #114248] Newxz? doc wrong in perlclib.pod
authorDavid Mitchell <davem@iabyn.com>
Tue, 24 Jul 2012 10:21:25 +0000 (11:21 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 24 Jul 2012 10:21:25 +0000 (11:21 +0100)
Commit 9f653bb54868b8547466924d4ce483acb8987efb changed the docs from
New/Newz to the newer Newx/Newxz, but forgot to remove the
no-longer-present 'id' arg.

pod/perlclib.pod

index 0785577..ef0b6b0 100644 (file)
@@ -99,8 +99,8 @@ There is no equivalent to C<fgets>; one should use C<sv_gets> instead:
 
     Instead Of:                        Use:
 
 
     Instead Of:                        Use:
 
-    t* p = malloc(n)                   Newx(id, p, n, t)
-    t* p = calloc(n, s)                Newxz(id, p, n, t)
+    t* p = malloc(n)                   Newx(p, n, t)
+    t* p = calloc(n, s)                Newxz(p, n, t)
     p = realloc(p, n)                  Renew(p, n, t)
     memcpy(dst, src, n)                Copy(src, dst, n, t)
     memmove(dst, src, n)               Move(src, dst, n, t)
     p = realloc(p, n)                  Renew(p, n, t)
     memcpy(dst, src, n)                Copy(src, dst, n, t)
     memmove(dst, src, n)               Move(src, dst, n, t)