diff --git a/docs/fileutil.md b/docs/fileutil.md
index e039a61..1b9b949 100644
--- a/docs/fileutil.md
+++ b/docs/fileutil.md
@@ -131,7 +131,7 @@ func main() {
Signature:
```go
-func CopyFile(srcFilePath string, dstFilePath string) error
+func CopyFile(srcPath string, dstPath string) error
```
Example:
diff --git a/docs/fileutil_zh-CN.md b/docs/fileutil_zh-CN.md
index 5b5896e..61a63cf 100644
--- a/docs/fileutil_zh-CN.md
+++ b/docs/fileutil_zh-CN.md
@@ -131,7 +131,7 @@ func main() {
函数签名:
```go
-func CopyFile(srcFilePath string, dstFilePath string) error
+func CopyFile(srcPath string, dstPath string) error
```
示例:
diff --git a/fileutil/file.go b/fileutil/file.go
index b8dd825..ee8c3ac 100644
--- a/fileutil/file.go
+++ b/fileutil/file.go
@@ -69,14 +69,14 @@ func RemoveFile(path string) error {
// CopyFile copy src file to dest file.
// Play: https://go.dev/play/p/Jg9AMJMLrJi
-func CopyFile(srcFilePath string, dstFilePath string) error {
- srcFile, err := os.Open(srcFilePath)
+func CopyFile(srcPath string, dstPath string) error {
+ srcFile, err := os.Open(srcPath)
if err != nil {
return err
}
defer srcFile.Close()
- distFile, err := os.Create(dstFilePath)
+ distFile, err := os.Create(dstPath)
if err != nil {
return err
}