Skip to main content

W0051 - Binary string can be written using sigil syntax

WeakWarning

    -module(main).
fn() -> <<"hello">>.
%% ^^^^^^^^^^^ 💡 weak: Binary string can be written using sigil syntax.

Explanation

OTP 27 brought in string sigils.

This diagnostic provides a way to convert existing binary string literals into sigil form.