]> git.lizzy.rs Git - rust.git/commitdiff
Fix documentation
authorChristian Poveda <christianpoveda@protonmail.com>
Wed, 23 Oct 2019 13:58:25 +0000 (08:58 -0500)
committerChristian Poveda <christianpoveda@protonmail.com>
Wed, 23 Oct 2019 13:58:25 +0000 (08:58 -0500)
src/helpers.rs

index 79efd95eb6d744712e877542073ac78f928adb17..0245540debbe74bf18b5d18c4d1b3b3df6781fc1 100644 (file)
@@ -414,8 +414,7 @@ fn read_os_string_from_c_string(&mut self, scalar: Scalar<Tag>) -> InterpResult<
     /// Helper function to write an OsStr as a null-terminated sequence of bytes, which is what
     /// the Unix APIs usually handle. This function returns `Ok(false)` without trying to write if
     /// `size` is not large enough to fit the contents of `os_string` plus a null terminator. It
-    /// returns `Ok(true)` if the writing process was successful. Otherwise it returns an
-    /// `InterpError`.
+    /// returns `Ok(true)` if the writing process was successful.
     fn write_os_str_to_c_string(
         &mut self,
         os_str: &OsStr,