Skip to content

Commit 33a6a1d

Browse files
committed
Remove wrong util example
1 parent ecf0c76 commit 33a6a1d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clippy_utils/src/lib.rs

-8
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,6 @@ pub fn expr_or_init<'a, 'b, 'tcx: 'b>(cx: &LateContext<'tcx>, mut expr: &'a Expr
172172
/// Finds the initializer expression for a local binding. Returns `None` if the binding is mutable.
173173
/// By only considering immutable bindings, we guarantee that the returned expression represents the
174174
/// value of the binding wherever it is referenced.
175-
///
176-
/// Example:
177-
/// ```ignore
178-
/// let abc = 1;
179-
/// // ^ output
180-
/// dbg!(abc)
181-
/// // ^^^ input
182-
/// ```
183175
pub fn find_binding_init<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) -> Option<&'tcx Expr<'tcx>> {
184176
let hir = cx.tcx.hir();
185177
if_chain! {

0 commit comments

Comments
 (0)