Skip to content

Commit e832c8e

Browse files
committed
Clarify test attribute usage for class methods in documentation
1 parent 0c633ea commit e832c8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/test-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `#[Test]` attribute explicitly marks a method, function, or class as a test.
44

55
Can be placed on:
66

7-
- **Class** — all public methods become tests
7+
- **Class** — all public methods with `void` return type become tests
88
- **Method** — only that method is a test
99
- **Function** — the function is a test
1010

ru/docs/test-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Можно ставить на:
66

7-
- **Класс** — все публичные методы становятся тестами
7+
- **Класс** — все публичные методы с возвращаемым типом `void` становятся тестами
88
- **Метод** — только этот метод является тестом
99
- **Функцию** — функция является тестом
1010

0 commit comments

Comments
 (0)