@@ -1026,9 +1026,9 @@ impl CStr {
1026
1026
/// The returned slice will **not** contain the trailing nul terminator that this C
1027
1027
/// string has.
1028
1028
///
1029
- /// > **Note**: This method is currently implemented as a 0-cost cast, but
1030
- /// > it is planned to alter its definition in the future to perform the
1031
- /// > length calculation whenever this method is called.
1029
+ /// > **Note**: This method is currently implemented as a constant-time
1030
+ /// > cast, but it is planned to alter its definition in the future to
1031
+ /// > perform the length calculation whenever this method is called.
1032
1032
///
1033
1033
/// # Examples
1034
1034
///
@@ -1077,9 +1077,9 @@ impl CStr {
1077
1077
/// it will return an error with details of where UTF-8 validation failed.
1078
1078
///
1079
1079
/// > **Note**: This method is currently implemented to check for validity
1080
- /// > after a 0-cost cast, but it is planned to alter its definition in the
1081
- /// > future to perform the length calculation in addition to the UTF-8
1082
- /// > check whenever this method is called.
1080
+ /// > after a constant-time cast, but it is planned to alter its definition
1081
+ /// > in the future to perform the length calculation in addition to the
1082
+ /// > UTF-8 check whenever this method is called.
1083
1083
///
1084
1084
/// [`&str`]: ../primitive.str.html
1085
1085
///
@@ -1110,9 +1110,9 @@ impl CStr {
1110
1110
/// with the result.
1111
1111
///
1112
1112
/// > **Note**: This method is currently implemented to check for validity
1113
- /// > after a 0-cost cast, but it is planned to alter its definition in the
1114
- /// > future to perform the length calculation in addition to the UTF-8
1115
- /// > check whenever this method is called.
1113
+ /// > after a constant-time cast, but it is planned to alter its definition
1114
+ /// > in the future to perform the length calculation in addition to the
1115
+ /// > UTF-8 check whenever this method is called.
1116
1116
///
1117
1117
/// [`Cow`]: ../borrow/enum.Cow.html
1118
1118
/// [`Borrowed`]: ../borrow/enum.Cow.html#variant.Borrowed
0 commit comments