From cd43f323d28e66d11273425cc6debcce735c33e2 Mon Sep 17 00:00:00 2001 From: The Depressed Milkman Date: Sat, 5 Mar 2022 10:11:41 +0100 Subject: [PATCH] correct `@frameSize()` params in documentation The documentation omitted the primary parameter, making it difficult to understand what this function actually does. --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index df8f21fe3c..f496019838 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -8664,7 +8664,7 @@ fn func() void { {#header_close#} {#header_open|@frameSize#} -
{#syntax#}@frameSize() usize{#endsyntax#}
+
{#syntax#}@frameSize(func: anytype) usize{#endsyntax#}

This is the same as {#syntax#}@sizeOf(@Frame(func)){#endsyntax#}, where {#syntax#}func{#endsyntax#} may be runtime-known.