[doc] Tweak language in asset dict paragraph.
PiperOrigin-RevId: 720994183 Change-Id: Ib99cc3fdd02eefdb2d78d7ac5adf36293c001062
This commit is contained in:
committed by
Copybara-Service
parent
f61973601e
commit
1a4b821b6b
+3
-4
@@ -507,10 +507,9 @@ Note the ``from_string()`` and ``from_file()`` methods can only be called at con
|
|||||||
Assets
|
Assets
|
||||||
^^^^^^
|
^^^^^^
|
||||||
|
|
||||||
All three methods allow one to specify a dictionary of assets that will be used
|
All three methods take in an optional argument called ``assets`` which is used
|
||||||
to resolve asset references in the XML. The dictionary maps from asset
|
to resolve asset references in the XML. This argument is a dictionary that maps
|
||||||
name (string) to asset data (bytes), and can be assigned to the ``assets``
|
asset name (string) to asset data (bytes), as demonstrated below:
|
||||||
attribute before calling ``compile()``, as demonstrated below.
|
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user