Skip to content

Commit

Permalink
add name attribute to code-block, test=document_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Jul 27, 2022
1 parent ea91ca2 commit e079fc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/paddle/fluid/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,7 @@ def run(self,
Examples 1:
.. code-block:: python
:name: code-example-1
import paddle
import numpy
Expand Down Expand Up @@ -1217,6 +1218,7 @@ def run(self,
Examples 2:
.. code-block:: python
:name: code-example-2
import paddle
import numpy as np
Expand Down

0 comments on commit e079fc0

Please sign in to comment.