# Implicit copy of read ref? Documentation problem, right?

**URL:** <https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075>\
**Category:** Mojo\
**Tags:** docs\
**Created:** [May 12, 2026, 8:25pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075 "2026-05-12T20:25:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulianJS](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/julianjs/32/1032_2.png) [@JulianJS](https://forum.modular.com/u/JulianJS)\
**Post date:** [May 12, 2026, 8:25pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075/1 "2026-05-12T20:25:40Z")

</div>

Reading through the docs once again for the 100x time probably I found [this](https://mojolang.org/docs/manual/values/ownership/#mutable-arguments-mut):

```mojo
def mutate_copy(l: List[Int]) -> List[Int]:
    # def creates an implicit copy of the list because it's mutated
    l.append(5)
    return l

```

I immediately was very skeptical and then relieved after trying that this does in fact NOT work.  
I guess / hope this is an old relict when we had both `fn` & `def` and is hopefully not the intended behavior.

Can someone confirm? 🤓

* * *

Also reading through the complete “Mojo Manual” again, there seems to be a lot of old / legacy mojo code that is either

- not working anymore: e.g. `print(list_of_data. __str__ ())` → `print(list_of_data)`
- not using newer features: e.g. `"...".format(...)` instead of t-String

Looking at the recent update for the contribution process I would assume PRs to improve the docs are welcome? Can also create an issue if necessary! 😎🔥

---

<div class="post-metadata">

**Author:** ![clattner](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/clattner/32/201_2.png) [@clattner](https://forum.modular.com/u/clattner)\
**Post date:** [May 12, 2026, 10:07pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075/2 "2026-05-12T22:07:39Z")

</div>

Wow, indeed, that is a bug. We’d love it if you could raise issues (here or in the issue tracker) for bugs like that when you see them. @arthur and @erica_sadun fyi.

---

<div class="post-metadata">

**Author:** ![erica\_sadun](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@erica\_sadun](https://forum.modular.com/u/erica_sadun)\
**Post date:** [May 13, 2026, 3:32pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075/3 "2026-05-13T15:32:31Z")

</div>

Thanks for double-checking it and calling it out.

We’ve been doing a lot of cleanup as the language stabilizes, and there are definitely still places where older patterns or syntax have survived longer than they should have. The examples you pointed out are good catches.

And yes, PRs to improve the docs are absolutely welcome. Issues are helpful too, especially for broader cleanup or consistency work. Thanks for taking the time to reread things this carefully

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [November 9, 2026, 3:33pm UTC](https://forum.modular.com/t/implicit-copy-of-read-ref-documentation-problem-right/3075/4 "2026-11-09T15:33:17Z")

</div>

Closed on November 9, 2026, 3:33pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
