[doc] Tweak language in asset dict paragraph.

PiperOrigin-RevId: 720994183
Change-Id: Ib99cc3fdd02eefdb2d78d7ac5adf36293c001062
This commit is contained in:
Kevin Zakka
2025-01-29 08:50:24 -08:00
committed by Copybara-Service
parent f61973601e
commit 1a4b821b6b
+3 -4
View File
@@ -507,10 +507,9 @@ Note the ``from_string()`` and ``from_file()`` methods can only be called at con
Assets
^^^^^^
All three methods allow one to specify a dictionary of assets that will be used
to resolve asset references in the XML. The dictionary maps from asset
name (string) to asset data (bytes), and can be assigned to the ``assets``
attribute before calling ``compile()``, as demonstrated below.
All three methods take in an optional argument called ``assets`` which is used
to resolve asset references in the XML. This argument is a dictionary that maps
asset name (string) to asset data (bytes), as demonstrated below:
.. code-block:: python