correct the documentation for newForeignPtr