From: David Mitchell Date: Tue, 24 Jul 2012 10:21:25 +0000 (+0100) Subject: [perl #114248] Newxz? doc wrong in perlclib.pod X-Git-Tag: upstream/5.20.0~6033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbe42f07d969063aabc8ae4605c000d8a83105fd;p=platform%2Fupstream%2Fperl.git [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. --- 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)