From bbe42f07d969063aabc8ae4605c000d8a83105fd Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Tue, 24 Jul 2012 11:21:25 +0100 Subject: [PATCH] [perl #114248] Newxz? doc wrong in perlclib.pod 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlclib.pod b/pod/perlclib.pod index 0785577..ef0b6b0 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -99,8 +99,8 @@ There is no equivalent to C; one should use C instead: 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) -- 2.7.4