Skip to content

Commit 7126096

Browse files
authored
Update ch16.md
for N in array[N], use unsigned instead of typename.
1 parent 5c18edd commit 7126096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

excersize/ch16.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ T* end(const T (&arr)[N])
8888
解:
8989

9090
```cpp
91-
template<typename T, typename N> constexpr
91+
template<typename T, unsigned N> constexpr
9292
unsigned size(const T (&arr)[N])
9393
{
9494
return N;

0 commit comments

Comments
 (0)