From cd8fbb0871f3be0da5f77d2cdf1fe34fe2c3952b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 11 Dec 2012 16:30:37 -0800 Subject: [PATCH] Correct a comment. --- format_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/format_test.cc b/format_test.cc index 0a8a20aa..e569fe4e 100644 --- a/format_test.cc +++ b/format_test.cc @@ -584,8 +584,10 @@ TEST(ActiveFormatterTest, ArgLifetime) { // of the API and shouldn't be used in real applications. const fmt::ActiveFormatter &af = fmt::Format("{0}"); const_cast&>(af) << std::string("test"); - // String object passed as an argument to Print has been destroyed, - // but ArgInserter dtor hasn't been called yet. + // String object passed as an argument to ActiveFormatter has + // been destroyed, but ArgInserter dtor hasn't been called yet. + // But that's OK since the Arg's dtor takes care of this and + // calls Format. EXPECT_EQ("test", str(af)); }