Skip to content

Commit 917390a

Browse files
zerbinasaem
andauthored
types: improve doc comment
Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
1 parent 86e4959 commit 917390a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/ast/types.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ proc safeInheritanceDiff*(a, b: PType): int =
10301030
proc compatibleEffectsAux(se, re: PNode, unknown, differ: EffectsCompat
10311031
): EffectsCompat =
10321032
## Computes whether effect lists `se` and `re` are compatible; they are when
1033-
## `se` is a superset of `re`.
1033+
## `se` is a superset of `re`. If compatible returns `efCompat`, otherwise `differ`
1034+
## or `unknown` if incompatible or cannot be determined, respectively.
10341035
if se.isNil:
10351036
# assume that it means "any effect"
10361037
# FIXME: ^^ this is not always true! 'nil' can also mean

0 commit comments

Comments
 (0)