This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix podcheck errors in perldelta
[perl5.git] / pod / perlclib.pod
index 1fe4699..ef0b6b0 100644 (file)
@@ -99,8 +99,8 @@ There is no equivalent to C<fgets>; one should use C<sv_gets> 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)
@@ -138,7 +138,7 @@ pattern into it that should be illegal as pointers (and floating point
 numbers), and also hopefully surprising enough as integers, so that
 any code attempting to use the data without forethought will break
 sooner rather than later.  Poisoning can be done using the Poison()
-macros, which have similar arguments as Zero():
+macros, which have similar arguments to Zero():
 
     PoisonWith(dst, n, t, b)    scribble memory with byte b
     PoisonNew(dst, n, t)        equal to PoisonWith(dst, n, t, 0xAB)