Skip to content

Commit 079b1b5

Browse files
committed
Fix doc typo: Pure virtual function shouldn't have a body
Closes #1182
1 parent 8060dc4 commit 079b1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp2/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ For example:
8181
abstract_base: type
8282
= {
8383
// A pure virtual function: virtual + no body
84-
print: (virtual this, msg: std::string) = { /*...*/ }
84+
print: (virtual this, msg: std::string);
8585

8686
// ...
8787
}

0 commit comments

Comments
 (0)