diff --git a/docs/api.md b/docs/api.md index b69b0f3027..043c77301c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -328,7 +328,7 @@ Temp file factory. ```js f1 = tmpfile() // /os/based/tmp/zx-1ra1iofojgg -f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/foo.txt +f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/f2.txt f3 = tmpfile('f3.txt', 'string or buffer') f4 = tmpfile('f4.sh', 'echo "foo"', 0o744) // executable ``` diff --git a/docs/migration-from-v7.md b/docs/migration-from-v7.md index 64e12621df..1a12c5a3fa 100644 --- a/docs/migration-from-v7.md +++ b/docs/migration-from-v7.md @@ -14,7 +14,7 @@ $.quiet = true // to completely turn off logging // import {ssh} from 'zx' ↓ import {ssh} from 'webpod' -const remote = ssh('user@host') +const remote = ssh({remoteUser: 'user', hostname: 'host'}) await remote`echo foo` ```