You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp2/declarations.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ n: namespace
185
185
186
186
## <aid="aliases"></a> Aliases
187
187
188
-
Aliases are pronounced **"synonym for**, and written using the same **name `:` kind `=` value**[declaration syntax](../cpp2/declarations.md) as everything in Cpp2:
188
+
Aliases are pronounced **"synonym for"**, and written using the same **name `:` kind `=` value**[declaration syntax](../cpp2/declarations.md) as everything in Cpp2:
189
189
190
190
-**name** is declared to be a synonym for **value**.
191
191
@@ -222,7 +222,7 @@ main: () = {
222
222
223
223
### <aid="type-aliases"></a> Type aliases
224
224
225
-
A namespace alias is written the same way as a [type](types.md), but using `==` and with the name of another type as its value. For example:
225
+
A type alias is written the same way as a [type](types.md), but using `==` and with the name of another type as its value. For example:
226
226
227
227
```cpp title="Type aliases" hl_lines="1 2 7 10"
228
228
// 'imap<T>' is a type defined as a synonym for 'std::map<i32, T>'
@@ -234,7 +234,7 @@ main: () = {
234
234
map2: imap<std::string> = ();
235
235
236
236
// Assertion they are the same type, using the same_as concept
0 commit comments