Skip to content

Commit ebb74d5

Browse files
Lodovico GiarettaLodovico Giaretta
authored andcommitted
Better documentation
1 parent a44527a commit ebb74d5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

std/traits.d

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,9 +2020,16 @@ version (unittest)
20202020
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
20212021

20222022
/**
2023-
Determines whether $(D T) is a class nested inside another class
2024-
and that $(D T.outer) is the implicit reference to the outer class
2025-
(i.e. $(D outer) has not been used as a field or method name)
2023+
Determines whether `T` is a class nested inside another class
2024+
and that `T.outer` is the implicit reference to the outer class
2025+
(i.e. `outer` has not been used as a field or method name)
2026+
2027+
Params:
2028+
T = type to test
2029+
2030+
Returns:
2031+
`true` if `T` is a class nested inside another, with the conditions described above;
2032+
`false` otherwise
20262033
*/
20272034
template isInnerClass(T)
20282035
if (is(T == class))

0 commit comments

Comments
 (0)