Skip to content

Commit

Permalink
fix(typos): fix minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko committed Sep 7, 2023
1 parent ceda9d8 commit b083c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion courses/intro/03-datatypes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<TYPENAME>(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.
```
Expand Down
1 change: 1 addition & 0 deletions courses/intro/08-arrays/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b083c70

Please sign in to comment.