Skip to content

Commit

Permalink
[faq] typo: 修复缩进
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Feb 2, 2024
1 parent b284133 commit 9f20bf4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/faq/basic_concepts/type_conversion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@
.. tab:: 函数

-> 指向该函数的指针
.. code-block:: cpp
:linenos:
.. code-block:: cpp
:linenos:
void print();
void print();
void (*pointer)() = &print; // 显式取地址, 得到指向该函数的指针
void (*pointer)() = print; // 隐式类型转换为指向该函数的指针
void (*pointer)() = &print; // 显式取地址, 得到指向该函数的指针
void (*pointer)() = print; // 隐式类型转换为指向该函数的指针
.. warning::

Expand Down

0 comments on commit 9f20bf4

Please sign in to comment.