Update func.cpp

Так красивше
Merge pull request #1 from Randamm/patch-1

Update func.cpp