Skip to content

Commit e1a9446

Browse files
fix(docs): fix missing backticks, remove latexpdfja, fix the missing help message of latexpdf, and remove unnecessary whitespace (#14101)
* Fix missing backticks * Remove whitespace in the header of the optimizer step * Remove whitespace in directives * Remove `make latexpdfja` * Add the help message of latexpdf in make.bat * Fix missing backticks * Update docs/internals/optimizer.rst --------- Co-authored-by: Nuno Santos <[email protected]>
1 parent 5d42bb5 commit e1a9446

12 files changed

+15
-31
lines changed

docs/080-breaking-changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@ How to update your code
173173
- Change ``msg.sender.transfer(x)`` to ``payable(msg.sender).transfer(x)`` or use a stored variable of ``address payable`` type.
174174
- Change ``x**y**z`` to ``(x**y)**z``.
175175
- Use inline assembly as a replacement for ``log0``, ..., ``log4``.
176-
- Negate unsigned integers by subtracting them from the maximum value of the type and adding 1 (e.g. ``type(uint256).max - x + 1``, while ensuring that `x` is not zero)
176+
- Negate unsigned integers by subtracting them from the maximum value of the type and adding 1 (e.g. ``type(uint256).max - x + 1``, while ensuring that ``x`` is not zero)

docs/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ help:
3434
@echo " epub to make an epub"
3535
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
3636
@echo " latexpdf to make LaTeX files and run them through pdflatex"
37-
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
3837
@echo " text to make text files"
3938
@echo " man to make manual pages"
4039
@echo " texinfo to make Texinfo files"
@@ -116,12 +115,6 @@ latexpdf:
116115
$(MAKE) -C $(BUILDDIR)/latex all-pdf
117116
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
118117

119-
latexpdfja:
120-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
121-
@echo "Running LaTeX files through platex and dvipdfmx..."
122-
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
123-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
124-
125118
text:
126119
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
127120
@echo

docs/contracts/inheritance.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,11 @@ You can use internal parameters in a constructor (for example storage pointers).
436436
the contract has to be marked :ref:`abstract <abstract-contract>`, because these parameters
437437
cannot be assigned valid values from outside but only through the constructors of derived contracts.
438438

439-
.. warning ::
439+
.. warning::
440440
Prior to version 0.4.22, constructors were defined as functions with the same name as the contract.
441441
This syntax was deprecated and is not allowed anymore in version 0.5.0.
442442

443-
.. warning ::
443+
.. warning::
444444
Prior to version 0.7.0, you had to specify the visibility of constructors as either
445445
``internal`` or ``public``.
446446

docs/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ SMT tests by exporting ``SMT_FLAGS=--no-smt`` before running ``./scripts/tests.s
146146
running ``./scripts/soltest.sh --no-smt``.
147147
These tests are ``libsolidity/smtCheckerTests`` and ``libsolidity/smtCheckerTestsJSON``.
148148

149-
.. note ::
149+
.. note::
150150

151151
To get a list of all unit tests run by Soltest, run ``./build/test/soltest --list_content=HRF``.
152152

@@ -167,7 +167,7 @@ See especially:
167167
- `run_test (-t) <https://www.boost.org/doc/libs/release/libs/test/doc/html/boost_test/utf_reference/rt_param_reference/run_test.html>`_ to run specific tests cases, and
168168
- `report-level (-r) <https://www.boost.org/doc/libs/release/libs/test/doc/html/boost_test/utf_reference/rt_param_reference/report_level.html>`_ give a more detailed report.
169169

170-
.. note ::
170+
.. note::
171171

172172
Those working in a Windows environment wanting to run the above basic sets
173173
without libz3. Using Git Bash, you use: ``./build/test/Release/soltest.exe -- --no-smt``.

docs/control-structures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ in the following situations:
651651

652652
For the following cases, the error data from the external call
653653
(if provided) is forwarded. This means that it can either cause
654-
an `Error` or a `Panic` (or whatever else was given):
654+
an ``Error`` or a ``Panic`` (or whatever else was given):
655655

656656
#. If a ``.transfer()`` fails.
657657
#. If you call a function via a message call but it does not finish

docs/installing-solidity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ If you are interested what CMake options are available run ``cmake .. -LH``.
527527
SMT Solvers
528528
-----------
529529
Solidity can be built against SMT solvers and will do so by default if
530-
they are found in the system. Each solver can be disabled by a `cmake` option.
530+
they are found in the system. Each solver can be disabled by a ``cmake`` option.
531531

532532
*Note: In some cases, this can also be a potential workaround for build failures.*
533533

docs/internals/layout_in_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ of types), arrays have its ``base`` type, and structs list their ``members`` in
208208
the same format as the top-level ``storage`` (see :ref:`above
209209
<storage-layout-top-level>`).
210210

211-
.. note ::
211+
.. note::
212212
The JSON output format of a contract's storage layout is still considered experimental
213213
and is subject to change in non-breaking releases of Solidity.
214214

docs/internals/optimizer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -826,10 +826,10 @@ if the common subexpression eliminator was run right before it.
826826

827827
.. _expression-simplifier:
828828

829-
Expression Simplifier
830-
^^^^^^^^^^^^^^^^^^^^^
829+
ExpressionSimplifier
830+
^^^^^^^^^^^^^^^^^^^^
831831

832-
The Expression Simplifier uses the Dataflow Analyzer and makes use
832+
The ExpressionSimplifier uses the Dataflow Analyzer and makes use
833833
of a list of equivalence transforms on expressions like ``X + 0 -> X``
834834
to simplify the code.
835835

docs/internals/source_mappings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ that are not part of the original input but are referenced from the source
2626
mappings. These source files together with their identifiers can be
2727
obtained via ``output['contracts'][sourceName][contractName]['evm']['bytecode']['generatedSources']``.
2828

29-
.. note ::
29+
.. note::
3030
In the case of instructions that are not associated with any particular source file,
3131
the source mapping assigns an integer identifier of ``-1``. This may happen for
3232
bytecode sections stemming from compiler-generated inline assembly statements.

docs/ir-breaking-changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ hiding new and different behavior in existing code.
247247
}
248248
}
249249
250-
The function `f()` behaves as follows:
250+
The function ``f()`` behaves as follows:
251251

252252
- Old code generator: runs out of gas while zeroing the array contents after the large memory allocation
253253
- New code generator: reverts due to free memory pointer overflow (does not run out of gas)

docs/make.bat

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if "%1" == "help" (
2828
echo. devhelp to make HTML files and a Devhelp project
2929
echo. epub to make an epub
3030
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
31+
echo. latexpdf to make LaTeX files and run them through pdflatex
3132
echo. text to make text files
3233
echo. man to make manual pages
3334
echo. texinfo to make Texinfo files
@@ -155,16 +156,6 @@ if "%1" == "latexpdf" (
155156
goto end
156157
)
157158

158-
if "%1" == "latexpdfja" (
159-
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
160-
cd %BUILDDIR%/latex
161-
make all-pdf-ja
162-
cd %BUILDDIR%/..
163-
echo.
164-
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
165-
goto end
166-
)
167-
168159
if "%1" == "text" (
169160
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
170161
if errorlevel 1 exit /b 1

docs/yul.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ the ``dup`` and ``swap`` instructions as well as ``jump`` instructions, labels a
947947
The remaining bytes will retain their values as of before the call.
948948

949949
.. note::
950-
The `difficulty()` instruction is disallowed in EVM version >= Paris.
950+
The ``difficulty()`` instruction is disallowed in EVM version >= Paris.
951951
With the Paris network upgrade the semantics of the instruction that was previously called
952952
``difficulty`` have been changed and the instruction was renamed to ``prevrandao``.
953953
It can now return arbitrary values in the full 256-bit range, whereas the highest recorded

0 commit comments

Comments
 (0)