aboutsummaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorAnthony Wang2021-04-27 20:29:54 -0500
committerGitHub2021-04-27 20:29:54 -0500
commit9a450cca8ad88d226811e3d2a549c3d7957ad2af (patch)
tree7314921a1727ea5330fff59214bf62ba8b5f2f04 /channels
parent0ab80e0a0ef5b661eb8ec225b7f929ec21221c56 (diff)
Update channels.cpp
Diffstat (limited to 'channels')
-rw-r--r--channels/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/channels.cpp b/channels/channels.cpp
index 8c5b090..f1964db 100644
--- a/channels/channels.cpp
+++ b/channels/channels.cpp
@@ -21,8 +21,8 @@ int main() {
channel c;
int x = 1;
c.write(x);
- std::cout << std::any_cast<int>(c.read()) << endl;
+ std::cout << std::any_cast<int>(c.read()) << std::endl;
std::string y = "Hello world";
c.write(y);
- std::cout << std::any_cast<std::string>(c.read()) << endl;
+ std::cout << std::any_cast<std::string>(c.read()) << std::endl;
}