From a80a0ab5256c48e43d25172d1d7c329e85435c65 Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Sat, 31 Aug 2024 13:41:36 +0200 Subject: [PATCH] core: Fix failing doctests --- core/build_playerglobal/src/lib.rs | 2 +- core/src/avm2/optimize.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/build_playerglobal/src/lib.rs b/core/build_playerglobal/src/lib.rs index 1d2931252..513760a4e 100644 --- a/core/build_playerglobal/src/lib.rs +++ b/core/build_playerglobal/src/lib.rs @@ -303,7 +303,7 @@ fn strip_metadata(abc: &mut AbcFile) { /// If we don't properly declare 'namespace AS3' in the input to asc.jar, then /// a call like `self.AS3::toXMLString()` will end up getting compiled to weird bytecode like this: /// -/// ``` +/// ```pcode /// getlex Multiname("AS3",[PackageNamespace(""),PrivateNamespace(null,"35"),PackageInternalNs(""),PrivateNamespace(null,"33"),ProtectedNamespace("XML"),StaticProtectedNs("XML")]) /// coerce QName(PackageNamespace(""),"Namespace") /// getproperty RTQName("toXMLString") diff --git a/core/src/avm2/optimize.rs b/core/src/avm2/optimize.rs index 234dbf711..21982eb7c 100644 --- a/core/src/avm2/optimize.rs +++ b/core/src/avm2/optimize.rs @@ -226,7 +226,7 @@ impl<'gc> Stack<'gc> { /// Checks if the method fits the following pattern: /// -/// ``` +/// ```text /// [Debug/DebugFile/DebugLine] zero or more times /// GetLocal { index: 0 } /// [Debug/DebugFile/DebugLine] zero or more times