From 277098bde2353e408ff4195d5cad387f0739b83c Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 20 Apr 2023 16:31:34 -0400 Subject: Fix inaccurate comment --- yjit/src/codegen.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yjit/src') diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index a38dc769fa..10544ea902 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -1465,7 +1465,9 @@ fn guard_object_is_not_ruby2_keyword_hash( asm.write_label(not_ruby2_keyword); } -// push enough nils onto the stack to fill out an array +/// This instruction pops a single value off the stack, converts it to an +/// arrayif it isn’t already one using the #to_ary method, and then pushes +/// the values from the array back onto the stack. fn gen_expandarray( jit: &mut JITState, asm: &mut Assembler, -- cgit v1.2.1