8000 001-table: 优化函数名字 · home-coder/data-abstraction-001@72eaf2e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72eaf2e

Browse files
author
oneface
committed
001-table: 优化函数名字
1 parent f7727a3 commit 72eaf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

001-table.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void table_insert(table_data *tdata, unsigned int loc, int data)
6363
table_show(tdata);
6464
}
6565

66-
static void table_modify(table_data *tdata, unsigned int loc, int data)
66+
static void table_amend(table_data *tdata, unsigned int loc, int data)
6767
{
6868
if (loc < 0 || loc >= tdata->length + 1) {
6969
printf("locaction (%d) is invalid\n", loc);
@@ -114,7 +114,7 @@ int main()
114114
table_insert(tdata, 0, 1);
115115
table_insert(tdata, 4, 2);
116116

117-
table_modify(tdata, 1, 7);
117+
table_amend(tdata, 1, 7);
118118

119119
table_delet(tdata, 5);
120120
table_delet(tdata, 0);

0 commit comments

Comments
 (0)
0