Skip to content

Commit 3b7a9d5

Browse files
committed
Fix a few typos
1 parent 2baeb3f commit 3b7a9d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ hello: (msg: std::string_view) =
7979

8080
This short program code already illustrates a few Cpp2 essentials.
8181

82-
**Consistent context-free syntax.** Cpp2 is designed so that there is one general way to spell a given thing, that works consistently everywhere. All Cpp2 type/function/object/namespace/module/etc. declarations use the unambiguous and context-free syntax **"_name_ `:` _kind_ `=` _statement_"**. The `:` is pronounced **"is a,"** and the `=` is pronounced is pronounced **"defined as."**
82+
**Consistent context-free syntax.** Cpp2 is designed so that there is one general way to spell a given thing, that works consistently everywhere. All Cpp2 type/function/object/namespace/module/etc. declarations use the unambiguous and context-free syntax **"_name_ `:` _kind_ `=` _statement_"**. The `:` is pronounced **"is a,"** and the `=` is pronounced **"defined as."**
8383

8484
- `main` **is a** function that takes no arguments and returns nothing, and is **defined as** the code body shown.
8585

docs/reference-cpp2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ The usual `// line comments` and `/* stream comments */` are supported. For exma
2222
All Cpp2 declarations are written as **"_name_ `:` _kind_ `=` _statement_"**.
2323

2424
- The `:` is pronounced **"is a."**
25-
- The `=` is pronounced is pronounced **"defined as."**
25+
- The `=` is pronounced **"defined as."**
2626
- The _statement_ is typically an expression statement (e.g., `a + b();`) or a compound statement (e.g., `{ /*...*/ return c(d) / e; }`).
2727

2828
For example:
2929

30-
``` cpp title="Example: Consistent declartions — name : kind = statement"
30+
``` cpp title="Example: Consistent declarations — name : kind = statement"
3131
// n is a namespace defined as the following scope
3232
n: namespace
3333
= {

0 commit comments

Comments
 (0)