Skip to content

Commit 9f16e2a

Browse files
committed
Minor changes to the Function section in the docs
1 parent 55792c3 commit 9f16e2a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

doc/examples/fun1.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#include <c2py/c2py.hpp>
22

3-
struct A {
4-
int i = 3;
5-
double x;
6-
std::string s;
7-
};
3+
int f(int x) { return -x;}
4+
int f(int x, int y) { return x + y;}

doc/reference/fnt_basic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ or
8888
Template functions
8989
------------------
9090

91-
The instantiation of generic functions in discussed in :ref:`customize`.
91+
The instantiation of generic functions in discussed in :ref:`function_templates`.
9292

0 commit comments

Comments
 (0)