diff --git a/courses/intro/03-datatypes/README.md b/courses/intro/03-datatypes/README.md index 2f1c1572..0334fba9 100644 --- a/courses/intro/03-datatypes/README.md +++ b/courses/intro/03-datatypes/README.md @@ -524,7 +524,7 @@ In C++, you can use an explicit cast operator to explicitly convert a value of o // ref: https://en.wikibooks.org/wiki/C%2B%2B_Programming/Programming_Languages/C%2B%2B/Code/Statements/Variables/Type_Casting (TYPENAME) value; // regular c-style. do not use this extensively static_cast(value); // c++ style conversion, arguably it is the preferred style. use this if you know what you are doing. -TYPENAME(value); // functional initialization, slower but safer. might not work for every case. use this if you are unsure or want to be safe. +TYPENAME(value); // functional initialization, slower but safer. might not work for every case. Use this if you are unsure or want to be safe. TYPENAME{value}; // initialization style, faster, convenient, concise and arguably safer because it triggers warnings. use this for the general case. ``` diff --git a/courses/intro/08-arrays/README.md b/courses/intro/08-arrays/README.md index 4559d645..25a211d4 100644 --- a/courses/intro/08-arrays/README.md +++ b/courses/intro/08-arrays/README.md @@ -212,6 +212,7 @@ Vectors are the safest way to deal with dynamic arrays in C++, the cpp core guid # Extra curiosities Context on common bugs and vulnerabilities: + - [Weaknesses in the 2022 CWE Top 25 Most Dangerous Software Weaknesses](https://cwe.mitre.org/data/definitions/1387.html) - [US Government enforces cyber security requirements](https://nvlpubs.nist.gov/nistpubs/ir/2021/NIST.IR.8397.pdf) - https://en.cppreference.com/w/cpp/language/array \ No newline at end of file