Skip to content

Commit

Permalink
Fix API reference
Browse files Browse the repository at this point in the history
Ref #1162
  • Loading branch information
hynek committed Jul 9, 2023
1 parent b6cd5a0 commit db76d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ Please note that true immutability is impossible in Python but it will [get](how
By themselves, immutable classes are useful for long-lived objects that should never change; like configurations for example.

In order to use them in regular program flow, you'll need a way to easily create new instances with changed attributes.
In Clojure that function is called [assoc](https://clojuredocs.org/clojure.core/assoc) and *attrs* shamelessly imitates it: `attr.evolve`:
In Clojure that function is called [*assoc*](https://clojuredocs.org/clojure.core/assoc) and *attrs* shamelessly imitates it: {func}`attrs.evolve`:

```{doctest}
>>> from attrs import evolve, frozen
Expand Down

0 comments on commit db76d51

Please sign in to comment.