]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40131: Fix source and target order in zipapp example (GH-19290)
authorZackery Spytz <zspytz@gmail.com>
Fri, 3 Apr 2020 16:36:29 +0000 (10:36 -0600)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 16:36:29 +0000 (22:06 +0530)
Doc/library/zipapp.rst

index 728315251e082439bcd896069d9029d25cd53205..fb40a2b3e964e4d52124d64134451a023dc4465c 100644 (file)
@@ -198,7 +198,7 @@ Pack up a directory into an archive, and run it.
 The same can be done using the :func:`create_archive` function::
 
    >>> import zipapp
-   >>> zipapp.create_archive('myapp.pyz', 'myapp')
+   >>> zipapp.create_archive('myapp', 'myapp.pyz')
 
 To make the application directly executable on POSIX, specify an interpreter
 to use.