, value <span class="hljs-keyword">in</span> <span class="hljs-built_in">ipairs</span>(list) <span class="hljs-keyword">do</span>
  list[index] = <span class="hljs-built_in">string</span>.upper(value)
<span class="hljs-keyword">end</span>

<span class="hljs-built_in">print</span>(list[<span class="hljs-number">1</span>])
</code></pre>
<p>If you try to just edit the value:</p>
<pre><code class="lang-lua">list = {<span class="hljs-string">&apos;dog&apos;</span>, <span class="hljs-string">&apos;cat&apos;</span