Skip to content

Commit

Permalink
[faq] typo: 和 -> 、
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims authored Jun 6, 2024
1 parent 12eedf2 commit 1aa663d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq/basic_concepts/operator_overloading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
如果你目的是让自定义类型模拟内置类型 (如 :cpp:`int`) 的行为, 则可以参考以下要求:

函数类型
- 对于 :cpp:`=` (赋值)、:cpp:`[]` (下标访问) :cpp:`()` (函数调用) 和 :cpp:`->` (成员访问), 总是实现为 *成员函数*, 因为它们只能实现为成员函数.
- 对于 :cpp:`=` (赋值)、:cpp:`[]` (下标访问) :cpp:`()` (函数调用) 和 :cpp:`->` (成员访问), 总是实现为 *成员函数*, 因为它们只能实现为成员函数.
- 对于 **一元运算符**, 实现为 *成员函数*.
- 对于 **二元运算符**:

Expand Down

0 comments on commit 1aa663d

Please sign in to comment.