diff --git a/examples/tips/publisher.cc b/examples/tips/publisher.cc
index 085e6c5b6f8f168cedfca2461ca11281d5e7a60c..eae8731139cbbf6f46d4cf81a20cd463476fe217 100644
--- a/examples/tips/publisher.cc
+++ b/examples/tips/publisher.cc
@@ -73,7 +73,7 @@ Status Publisher::ListTopics(const grpc::string& project_id,
   ListTopicsResponse response;
   ClientContext context;
 
-  std::stringstream ss;
+  std::ostringstream ss;
   ss << "cloud.googleapis.com/project in (/projects/" << project_id << ")";
   request.set_query(ss.str());