docs/packages: Some proofreading.
@@ -188,7 +188,7 @@ Few notes:
1. Step 5 in the sequence above assumes that the distribution package
is available from PyPI. If that is not the case, you would need
to copy Python source files manually to ``modules/`` subdirectory
- of the port port directory. (Note that upip does not support
+ of the port directory. (Note that upip does not support
installing from e.g. version control repositories).
2. The firmware for baremetal devices usually has size restrictions,
so adding too many frozen modules may overflow it. Usually, you
@@ -252,15 +252,15 @@ Thus, the ``resource_stream()`` emulates interface of the standard
`open()` function.
Implementation-wise, ``resource_stream()`` uses file operations
-underlyingly, if distribution package is install in the filesystem.
+underlyingly, if distribution package is installed in the filesystem.
However, it also supports functioning without the underlying filesystem,
e.g. if the package is frozen as the bytecode. This however requires
an extra intermediate step when packaging application - creation of
"Python resource module".
-The idea of this module is to convert binary data to a Python bytes
-object, and put it into the dictionary, indexed by the resource name.
-This conversion is done automatically using overridden ``sdist`` command
+The idea of this module is to convert binary data to a Python ``bytes``
+objects, and put them into the dictionary, indexed by the resource name.
+This conversion is done automatically using the overridden ``sdist`` command
described in the previous section.
Let's trace the complete process using the following example. Suppose
@@ -298,8 +298,8 @@ If you would like to debug ``R.py`` creation, you can run::
python3 setup.py sdist --manifest-only
-Alternatively, you can use tools/mpy_bin2res.py script from the
-MicroPython distribution, in which can you will need to pass paths
+Alternatively, you can use ``tools/mpy_bin2res.py`` script from the
+MicroPython distribution, in which case you will need to pass paths
to all resource files::
mpy_bin2res.py data/page.html data/image.png
