Skip to content

Commit 8e95313

Browse files
committed
fix(ruby): corrects adoc generation for CSR read expressions
1 parent 54b5f3a commit 8e95313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/idl/passes/gen_adoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def gen_adoc(indent = 0, indent_spaces: 2)
299299

300300
class CsrReadExpressionAst
301301
def gen_adoc(indent = 0, indent_spaces: 2)
302-
csr_text = "CSR[#{idx}]"
302+
csr_text = "CSR[#{csr_name}]"
303303
"#{' '*indent}%%LINK%csr;#{csr_name};#{csr_text}%%"
304304
end
305305
end

0 commit comments

Comments
 (0)