Skip to content

Commit 771867e

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#31 from VSChawathe/patch-4
Coding style
2 parents e425e34 + 585dd39 commit 771867e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/parallel/concrt/codesnippet/CPP/walkthrough-creating-a-dataflow-agent_7.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class dataflow_agent : public agent
188188
// Set the sentinel event.
189189
received_sentinel.set();
190190
},
191-
[](int value) {
191+
[](int value) -> bool {
192192
return value == 0;
193193
});
194194

@@ -299,4 +299,4 @@ int wmain()
299299
<< L" negative numbers."<< endl;
300300
wcout << L"There are " << df_agent.positives()
301301
<< L" positive numbers."<< endl;
302-
}
302+
}

0 commit comments

Comments
 (0)