Skip to content

Commit

Permalink
Update crates/spk-schema/crates/foundation/src/name/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Bottriell <ryan@bottriell.ca>
  • Loading branch information
dcookspi and rydrman authored Dec 12, 2023
1 parent adf5cd7 commit 5e2ee87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/spk-schema/crates/foundation/src/name/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ impl OptName {

impl OptNameBuf {
/// Construct a valid OptNameBuf, invalid characters will be
/// removed, the length will be padded or truncates, and uppercase
/// letter will be lowercased to make a valid option name.
/// removed, the length will be padded or truncated, and uppercase
/// letters will be lowercased to make a valid option name.
pub fn new_lossy<S: AsRef<str>>(s: &S) -> OptNameBuf {
if validate_opt_base_name(s).is_ok() {
return unsafe { OptNameBuf::from_string(s.as_ref().to_string()) };
Expand Down

0 comments on commit 5e2ee87

Please sign in to comment.