Skip to content

Conversation

Magnus-Mage
Copy link

Files changed:

* wiki/wiki/cpp-tutorial/language-basics.md: Typo and corrections to context flow

Sign off: Magnus-Mage <>

Copy link
Contributor

@eisenwave eisenwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the errors marked in the review comments, I feel like most of the changes are time-wasting and matters of taste.

There is no clear benefit to rewrite "experience compilation errors" to "end up with compilation errors". It's just a rewrite to suit one person's personal tastes over those of the original author.

Comment on lines 52 to 53
_Block comments_ start with `/*` and end with `*/`. Although they can be used for single line comments, they are
typically used for comments that span multiple lines.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_Block comments_ start with `/*` and end with `*/`. Although they can be used for single line comments, they are
typically used for comments that span multiple lines.
_Block comments_ start with `/*` and end with `*/`. Although they can be used for single-line comments, they are
typically used for comments that span multiple lines.

Comment on lines 84 to 85
In above snippet, the variable `foo` is initialized with a value of `0`. The expression `foo + 2` is then
evaluated, and then the result is assigned back to `foo`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In above snippet, the variable `foo` is initialized with a value of `0`. The expression `foo + 2` is then
evaluated, and then the result is assigned back to `foo`.
In the above snippet, the variable `foo` is initialized with a value of `0`. The expression `foo + 2` is then
evaluated, and then the result is assigned back to `foo`.

C++ reserves a set of words in the language for its own use. Developers may use these keywords, but they cannot be used
as identifiers. You can find a list of all keywords on [cppreference](https://en.cppreference.com/w/cpp/keyword).
C++ reserves a set of words in the language for its own use, known as _keywords_. These keywords may be used
by developers, but they cannot be used as identifiers(such as variable name). You can find a complete list of C++
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
by developers, but they cannot be used as identifiers(such as variable name). You can find a complete list of C++
by developers, but they cannot be used as identifiers (such as variable names). You can find a complete list of C++


In addition to these "true keywords", C++ also has "contextual keywords", formally called _identifiers with special
meaning_, such as `override`. We will cover these in later chapters.
In addition to these _true keywords_, C++ also has _contextual keywords_, formally called _identifiers with special
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why this should be italicized. "True keywords" and "contextual keywords" are colloquial terms, and my impression is that we use italics only for proper definitions.

## Fundamental Data Types and Literals

All values in C++ have a _type_, and variables can only hold values of a specified type.
In C++, every values has a _type_, and variables can only store values of the type they are declared with.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In C++, every values has a _type_, and variables can only store values of the type they are declared with.
In C++, all values has a _type_, and variables can only store values of the type they are declared with.


```cpp
bool b = 1 > 0; // True if one is greater than zero.
bool b = 1 > 0; // true, if 1 is greater than 0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added comma doesn't make sense.

Comment on lines 164 to 165
_Integer types_ in C++ are similar to whole numbers in mathematics. They can store values like `1`, `0` or `-1`,
but nto fractions like 0.5.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"whole numbers" seems weird. "Integer" is also the term used in mathematics; the original was fine.

Comment on lines 164 to 165
_Integer types_ in C++ are similar to whole numbers in mathematics. They can store values like `1`, `0` or `-1`,
but nto fractions like 0.5.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_Integer types_ in C++ are similar to whole numbers in mathematics. They can store values like `1`, `0` or `-1`,
but nto fractions like 0.5.
but to fractions like `0.5`.

@Magnus-Mage Magnus-Mage force-pushed the fix/revision-cpp-tutorial branch 3 times, most recently from b061934 to 5422fc6 Compare September 19, 2025 06:59
@Magnus-Mage
Copy link
Author

Basically, some of the parts i have revised to use points rather than paragraphs but they are also just a personal preference of what i believe would be easier to read.

Otherwise, all other changes should be good.

@Magnus-Mage Magnus-Mage force-pushed the fix/revision-cpp-tutorial branch from 5422fc6 to 7d81df2 Compare September 19, 2025 13:35
	* wiki/wiki/cpp-tutorial/language-basics.md:
	Typo and corrections to context flow

Sign off: Magnus-Mage <>
@Magnus-Mage Magnus-Mage force-pushed the fix/revision-cpp-tutorial branch from 7d81df2 to 844c096 Compare September 19, 2025 13:45
Copy link
Author

@Magnus-Mage Magnus-Mage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine with the fomratting now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants