diff --git a/CPP11.md b/CPP11.md index 1619f22..a5dcefa 100644 --- a/CPP11.md +++ b/CPP11.md @@ -719,7 +719,7 @@ start = std::chrono::steady_clock::now(); end = std::chrono::steady_clock::now(); std::chrono::duration elapsed_seconds = end - start; -elapsed_seconds.count(); // t number of seconds, represented as a `double` +double t = elapsed_seconds.count(); // t number of seconds, represented as a `double` ``` ### Tuples diff --git a/README.md b/README.md index b066879..8700a65 100644 --- a/README.md +++ b/README.md @@ -1305,7 +1305,7 @@ start = std::chrono::steady_clock::now(); end = std::chrono::steady_clock::now(); std::chrono::duration elapsed_seconds = end - start; -elapsed_seconds.count(); // t number of seconds, represented as a `double` +double t = elapsed_seconds.count(); // t number of seconds, represented as a `double` ``` ### Tuples