Skip to content

Commit f087d93

Browse files
committed
refactor(socket): Standardize the style of function names
1 parent 0648d19 commit f087d93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ mod test_c_getenv {
294294
}
295295
}
296296

297-
fn put_env(name: &str, value: &str) -> i32 {
297+
fn c_putenv(name: &str, value: &str) -> i32 {
298298
extern "C" {
299299
fn _putenv(envstring: *const std::os::raw::c_char) -> std::os::raw::c_int;
300300
}
@@ -371,7 +371,7 @@ mod test_c_getenv {
371371
unsafe {
372372
SetConsoleCP(cp);
373373
}
374-
put_env(TEST_ENV_VAR_NAME, input);
374+
c_putenv(TEST_ENV_VAR_NAME, input);
375375

376376
// The output should not be affected by the current code page
377377
for codepage in &unique_codepages {

0 commit comments

Comments
 (0)