30 lines
494 B
Plaintext
30 lines
494 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
// the two statements seems to be attached to the if statement, but that is only true for the first one:
|
|
if (condition)
|
|
ExecuteSomething();
|
|
CheckSomething();
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
if (condition)
|
|
{
|
|
ExecuteSomething();
|
|
CheckSomething();
|
|
}
|
|
----
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|