Skip to content

Commit d7a98aa

Browse files
committed
修正注释
1 parent bffa074 commit d7a98aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceAnalysis/AtomicFile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public AtomicFile(File baseName) {
7171

7272
```java
7373
public FileOutputStream startWrite() throws IOException {
74-
// 如果备份文件不存在,将原文件重命名为备份文件,并删除原文件
74+
// 当原文件存在,备份文件不存在的时候,原文件更名为备份文件
7575
if (mBaseName.exists()) {
7676
if (!mBackupName.exists()) {
7777
// 如果原文件存在且备份文件不存在,直接将原文件重命名为备份文件

0 commit comments

Comments
 (0)