Skip to content

Commit c97055f

Browse files
whitespace in example for type unions fixed
Co-authored-by: Shati Patel <[email protected]>
1 parent faf4c16 commit c97055f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/language/ql-handbook/types.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,15 +498,15 @@ In some cases, using the type union over the whole algebraic datatype can avoid
498498
For example, the following construction is legal::
499499

500500
newtype InitialValueSource =
501-
ExplicitInitialization(VarDecl v) { exists(v.getInitializer()) } or
502-
ParameterPassing(Call c, int pos) { exists(c.getParameter(pos)) } or
503-
UnknownInitialGarbage(VarDecl v) { not exists(DefiniteInitialization di | v = target(di)) }
501+
ExplicitInitialization(VarDecl v) { exists(v.getInitializer()) } or
502+
ParameterPassing(Call c, int pos) { exists(c.getParameter(pos)) } or
503+
UnknownInitialGarbage(VarDecl v) { not exists(DefiniteInitialization di | v = target(di)) }
504504

505505
class DefiniteInitialization = ParameterPassing or ExplicitInitialization;
506506

507507
VarDecl target(DefiniteInitialization di) {
508-
di = ExplicitInitialization(result) or
509-
exists(Call c, int pos | di = ParameterPassing(c, pos) and
508+
di = ExplicitInitialization(result) or
509+
exists(Call c, int pos | di = ParameterPassing(c, pos) and
510510
result = c.getCallee().getFormalArg(pos))
511511
}
512512

0 commit comments

Comments
 (0)