Skip to content

Commit

Permalink
Fix code in c++ (kamranahmedse#4373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikeost authored Aug 22, 2023
1 parent f2b29f8 commit 7072c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/roadmaps/cpp/content/110-stl/103-date-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
```
Expand Down Expand Up @@ -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).
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).

0 comments on commit 7072c4c

Please sign in to comment.