Skip to content

Commit eafaba6

Browse files
committed
Revise sentence and move to note
Rather than just dropping that word, let's revise the sentence overall to make it a bit better, and since it's just an example, let's move this sentence into an admonition.
1 parent 9ad10d9 commit eafaba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/associated-items.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ r[items.associated.fn.def]
5959
An *associated function definition* defines a function associated with another
6060
type. It is written the same as a [function item].
6161

62-
An example of a common associated function is a `new` function that returns
63-
a value of the type the function is associated with.
62+
> [!NOTE]
63+
> A common example is an associated function named `new` that returns a value of the type with which it is associated.
6464
6565
```rust
6666
struct Struct {

0 commit comments

Comments
 (0)