Skip to content

Commit 0349ce0

Browse files
authored
Render return description above the retlist
I think the description is easier to return than the list
1 parent 640da47 commit 0349ce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/pages/reference/[func].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const oopList = Array.isArray(funcInfo.oop) ? funcInfo.oop : funcInfo.oop ? [fun
283283
{syntax.returns && (
284284
<>
285285
<h4>Returns</h4>
286+
<EnhancedMarkdown content={syntax.returns.description ?? ""} />
286287
<ul>
287288
{syntax.returns.values.map((ret: any) => (
288289
<li>
@@ -291,7 +292,6 @@ const oopList = Array.isArray(funcInfo.oop) ? funcInfo.oop : funcInfo.oop ? [fun
291292
</li>
292293
))}
293294
</ul>
294-
<EnhancedMarkdown content={syntax.returns.description ?? ""} />
295295
</>
296296
)}
297297
</>
@@ -330,4 +330,4 @@ const oopList = Array.isArray(funcInfo.oop) ? funcInfo.oop : funcInfo.oop ? [fun
330330

331331
<SeeAlsoSection seeAlsoLinks={getSeeAlsoLinksForItem(func)} currentId={func.id} />
332332
</StarlightPage>
333-
</div>
333+
</div>

0 commit comments

Comments
 (0)