diff options
| author | Brent Kerby <blkerby@gmail.com> | 2021-05-02 15:55:22 -0600 |
|---|---|---|
| committer | Brent Kerby <blkerby@gmail.com> | 2021-05-02 17:46:00 -0600 |
| commit | 6679f5ceb1bd367050bb69b239d94d6213696336 (patch) | |
| tree | 80d535ea84fcb2c8577be39a3d227d8799e53665 /library/std/src/ffi | |
| parent | e10cbc33c1fd2fcd446cab5cdcc57332d154721c (diff) | |
| download | rust-6679f5ceb1bd367050bb69b239d94d6213696336.tar.gz rust-6679f5ceb1bd367050bb69b239d94d6213696336.zip | |
Change 'NULL' to 'null'
Diffstat (limited to 'library/std/src/ffi')
| -rw-r--r-- | library/std/src/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs index ed4950c57a6..2f9845d7536 100644 --- a/library/std/src/ffi/c_str.rs +++ b/library/std/src/ffi/c_str.rs @@ -498,7 +498,7 @@ impl CString { /// Failure to call [`CString::from_raw`] will lead to a memory leak. /// /// The C side must **not** modify the length of the string (by writing a - /// `NULL` somewhere inside the string or removing the final one) before + /// `null` somewhere inside the string or removing the final one) before /// it makes it back into Rust using [`CString::from_raw`]. See the safety section /// in [`CString::from_raw`]. /// |
