Skip to content

Commit

Permalink
correct argument names
Browse files Browse the repository at this point in the history
Co-authored-by: messense <messense@icloud.com>
  • Loading branch information
davidhewitt and messense authored Feb 27, 2021
1 parent 55aec97 commit a7d33dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/class/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ pub trait HasMethodsInventory {
pub struct NulByteInString(pub(crate) &'static str);

fn get_name(name: &'static str) -> Result<&'static CStr, NulByteInString> {
extract_cstr_or_leak_cstring(name, "Function name cannot contain contain NULL byte.")
extract_cstr_or_leak_cstring(name, "Function name cannot contain NUL byte.")
}

fn get_doc(doc: &'static str) -> Result<&'static CStr, NulByteInString> {
extract_cstr_or_leak_cstring(doc, "Document cannot contain contain NULL byte.")
extract_cstr_or_leak_cstring(doc, "Document cannot contain NUL byte.")
}

fn extract_cstr_or_leak_cstring(
Expand Down

0 comments on commit a7d33dd

Please sign in to comment.