Skip to content

Commit 968d570

Browse files
authored
Merge pull request #82 from eclipse-zenoh/doc_sample_fix
sample in documemntation fix
2 parents a822c95 + 1e77504 commit 968d570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pubsub.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Publisher example:
3232
session.put("demo/example/simple", "Simple!");
3333
3434
// Publish from a Publisher object
35-
auto publisher = session.declare_publisher("demo/example/simple");
35+
auto publisher = expect<Publisher>(session.declare_publisher("demo/example/simple"));
3636
publisher.put("Simple!");
3737
}
3838

@@ -53,5 +53,5 @@ Subscriber example:
5353
})
5454
);
5555
// Wait for a key press to exit
56-
c = getchar();
56+
char c = getchar();
5757
}

0 commit comments

Comments
 (0)