File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,12 @@ T Multiply(const S& input) {
132
132
133
133
namespace internal {
134
134
135
- // ExtractValue <U>::type is T if U is absl::StatusOr<T>, and is undefined
136
- // otherwise.
135
+ // ExtractStatusOrValue <U>::type is T if U is absl::StatusOr<T>, and is
136
+ // undefined otherwise.
137
137
template <typename U>
138
- struct ExtractValue ;
138
+ struct ExtractStatusOrValue ;
139
139
template <typename T>
140
- struct ExtractValue <absl::StatusOr<T>> {
140
+ struct ExtractStatusOrValue <absl::StatusOr<T>> {
141
141
using type = T;
142
142
};
143
143
@@ -158,7 +158,7 @@ struct ExtractValue<absl::StatusOr<T>> {
158
158
// catch it; therefore we should ensure that `func()` never
159
159
// crashes (and fix any crash as a bug).
160
160
template <typename Func>
161
- typename internal::ExtractValue <decltype(std::declval<Func>()())>::type
161
+ typename internal::ExtractStatusOrValue <decltype(std::declval<Func>()())>::type
162
162
RaisePythonValueErrorOnFailure (const Func& func) {
163
163
decltype (std::declval<Func>()()) result;
164
164
try {
You can’t perform that action at this time.
0 commit comments