Skip to content

Commit aa5f1f9

Browse files
committed
Fix typo
1 parent c5b3a71 commit aa5f1f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/manual_unwrap_or.fixed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ fn result_unwrap_or() {
137137
}
138138

139139
// don't lint in const fn
140-
const fn const_fn_unwrap_or() {
140+
const fn const_fn_option_unwrap_or() {
141141
match Some(1) {
142142
Some(s) => s,
143143
None => 0,
144144
};
145145
}
146146

147-
const fn const_fn_unwrap() {
147+
const fn const_fn_result_unwrap_or() {
148148
match Ok::<&str, &str>("Alice") {
149149
Ok(s) => s,
150150
Err(_) => "Bob",

tests/ui/manual_unwrap_or.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ fn result_unwrap_or() {
176176
}
177177

178178
// don't lint in const fn
179-
const fn const_fn_unwrap_or() {
179+
const fn const_fn_option_unwrap_or() {
180180
match Some(1) {
181181
Some(s) => s,
182182
None => 0,
183183
};
184184
}
185185

186-
const fn const_fn_unwrap() {
186+
const fn const_fn_result_unwrap_or() {
187187
match Ok::<&str, &str>("Alice") {
188188
Ok(s) => s,
189189
Err(_) => "Bob",

0 commit comments

Comments
 (0)