Skip to content

Commit 558b9f6

Browse files
authored
Docs proofreading. NFC (#15051)
1 parent 3407afb commit 558b9f6

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

docs/emcc.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Most clang options will work, as will gcc options, for example:
2727
# Display this information
2828
emcc --help
2929

30-
Display compiler version information
30+
# Display compiler version information
3131
emcc --version
3232

3333
To see the full list of *Clang* options supported on the version of
@@ -63,7 +63,7 @@ Options that are modified or new in *emcc* are listed below:
6363
parts of the runtime may be stripped if they are not exported on
6464
the "Module" object. The compiler is aware of code in --pre-js
6565
and --post-js, so you can safely use the runtime from there.
66-
Alternatively, you can use "EXTRA_EXPORTED_RUNTIME_METHODS", see
66+
Alternatively, you can use "EXPORTED_RUNTIME_METHODS", see
6767
src/settings.js.
6868

6969
"-O3"

site/source/docs/getting_started/downloads.rst

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Run the following :ref:`emsdk <emsdk>` commands to get the latest tools from Git
4646

4747
.. note:: On Windows, run ``emsdk`` instead of ``./emsdk``, and ``emsdk_env.bat`` instead of ``source ./emsdk_env.sh``.
4848

49+
.. note:: On Windows, if you use the ``activate`` command, the step of ``emsdk_env.bat`` is optional. If you want to know more, see :ref:`activate SDK version <emsdk-set-active-tools>`.
50+
4951
.. note:: ``git pull`` will fetch the current list of tags, but very recent ones may not yet be present there. You can run ``./emsdk update-tags`` to update the list of tags directly.
5052

5153
If you change the location of the SDK (e.g. take it to another computer on an USB), re-run the ``./emsdk activate latest`` and ``source ./emsdk_env.sh`` commands.

site/source/docs/porting/files/Synchronous-Virtual-XHR-Backed-File-System-Usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Instructions
6464
.. include:: ../../../../../tests/test_browser.py
6565
:literal:
6666
:start-after: html_file.write(r"""
67-
:end-before: html_file.close()
67+
:end-before: """ % self.port)
6868
:code: html
6969

7070

site/source/docs/tools_reference/emcc.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Most `clang options <http://linux.die.net/man/1/clang>`_ will work, as will `gcc
2828
# Display this information
2929
emcc --help
3030

31-
Display compiler version information
31+
# Display compiler version information
3232
emcc --version
3333

3434

@@ -62,7 +62,7 @@ Options that are modified or new in *emcc* are listed below:
6262
[compile+link]
6363
Like ``-O1``, but enables more optimizations. During link this will also enable various JavaScript optimizations.
6464

65-
.. note:: These JavaScript optimizations can reduce code size by removing things that the compiler does not see being used, in particular, parts of the runtime may be stripped if they are not exported on the ``Module`` object. The compiler is aware of code in :ref:`--pre-js <emcc-pre-js>` and :ref:`--post-js <emcc-post-js>`, so you can safely use the runtime from there. Alternatively, you can use ``EXTRA_EXPORTED_RUNTIME_METHODS``, see `src/settings.js <https://github.com/emscripten-core/emscripten/blob/main/src/settings.js>`_.
65+
.. note:: These JavaScript optimizations can reduce code size by removing things that the compiler does not see being used, in particular, parts of the runtime may be stripped if they are not exported on the ``Module`` object. The compiler is aware of code in :ref:`--pre-js <emcc-pre-js>` and :ref:`--post-js <emcc-post-js>`, so you can safely use the runtime from there. Alternatively, you can use ``EXPORTED_RUNTIME_METHODS``, see `src/settings.js <https://github.com/emscripten-core/emscripten/blob/main/src/settings.js>`_.
6666

6767
.. _emcc-O3:
6868

tests/test_browser.py

-1
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,6 @@ def test_chunked_synchronous_xhr(self):
16141614
<!doctype html>
16151615
<html>
16161616
<head><meta charset="utf-8"><title>Chunked XHR</title></head>
1617-
<html>
16181617
<body>
16191618
Chunked XHR Web Worker Test
16201619
<script>

0 commit comments

Comments
 (0)