Skip to content

Commit 4013f80

Browse files
authored
Merge pull request #256 from ralphtheninja/std-clamp
Mention std::clamp in explanatory comment instead of min/max
2 parents 7eae20d + 949560e commit 4013f80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ matching it against the minimum and maximum image extent.
339339

340340
```c++
341341
#include <cstdint> // Necessary for UINT32_MAX
342-
#include <algorithm> // Necessary for std::min/std::max
342+
#include <algorithm> // Necessary for std::clamp
343343

344344
...
345345

fr/03_Dessiner_un_triangle/01_Présentation/01_Swap_chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ fenêtre, dans les bornes de `minImageExtent` et `maxImageExtent`.
297297

298298
```c++
299299
#include <cstdint> // UINT32_MAX
300-
#include <algorithm> // std::min/std::max
300+
#include <algorithm> // std::clamp
301301

302302
...
303303

0 commit comments

Comments
 (0)