From eda9a521aafd13a48751ec696228ec124783ba51 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Fri, 26 Jan 2024 21:33:36 +0000
Subject: [PATCH] Fix documentation for variables functions

---
 src/variables.jl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/variables.jl b/src/variables.jl
index bff48c7..a2c75c6 100644
--- a/src/variables.jl
+++ b/src/variables.jl
@@ -32,8 +32,9 @@ symbol_to_func = Dict{Symbol, Function}()
 for (func_symbol, (block_symbol, description)) in all_variables_symbols
     as_string = "    $func_symbol($block_symbol)\n\n$description\n\nThis represents a variable within the sequence. Variables can be set during the construction of a [`BuildingBlock`](@ref) or used to create constraints after the fact."
     new_func = @eval begin
-        $as_string
         function $func_symbol end
+        @doc $as_string $func_symbol
+        $func_symbol
     end
     symbol_to_func[func_symbol] = new_func
 end
-- 
GitLab