From 7072c4cf80fb0798425bbd81ac97b434cd383f88 Mon Sep 17 00:00:00 2001 From: Mikhail Ostashchenko Date: Tue, 22 Aug 2023 13:19:08 +0200 Subject: [PATCH] Fix code in c++ (#4373) --- src/data/roadmaps/cpp/content/110-stl/103-date-time.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/cpp/content/110-stl/103-date-time.md b/src/data/roadmaps/cpp/content/110-stl/103-date-time.md index d4920b265..7538f69d8 100644 --- a/src/data/roadmaps/cpp/content/110-stl/103-date-time.md +++ b/src/data/roadmaps/cpp/content/110-stl/103-date-time.md @@ -19,7 +19,7 @@ A `duration` represents a span of time, which can be expressed in various units int main() { std::chrono::seconds sec(5); std::chrono::minutes min(2); - std(chrono)::hours hr(1); + std::chrono::hours hr(1); return 0; } ``` @@ -87,4 +87,4 @@ int main() { } ``` -This summarizes the basic functionality of working with date and time in C++ using the `chrono` library. You can find more advanced features, such as casting durations and time arithmetic, in the [C++ reference](https://en.cppreference.com/w/cpp/chrono). \ No newline at end of file +This summarizes the basic functionality of working with date and time in C++ using the `chrono` library. You can find more advanced features, such as casting durations and time arithmetic, in the [C++ reference](https://en.cppreference.com/w/cpp/chrono).