Fix incorrect file position descriptions in script comments (#7492)

This commit is contained in:
Zach
2025-03-25 23:48:48 +08:00
committed by GitHub
parent ff6312ab02
commit 1064939013

View File

@@ -9,7 +9,7 @@ _FILE_EDIT_DESCRIPTION = """Edit a file in plain-text format.
**Example 1: general edit for short files**
For example, given an existing file `/path/to/file.py` that looks like this:
(this is the end of the file)
(this is the beginning of the file)
1|class MyClass:
2| def __init__(self):
3| self.x = 1
@@ -21,7 +21,7 @@ For example, given an existing file `/path/to/file.py` that looks like this:
(this is the end of the file)
The assistant wants to edit the file to look like this:
(this is the end of the file)
(this is the beginning of the file)
1|class MyClass:
2| def __init__(self):
3| self.x = 1
@@ -45,7 +45,7 @@ print(MyClass().y)
**Example 2: append to file for short files**
For example, given an existing file `/path/to/file.py` that looks like this:
(this is the end of the file)
(this is the beginning of the file)
1|class MyClass:
2| def __init__(self):
3| self.x = 1