Functional Wrappers in Sass

Thank you! Great article. But is it mistake?
$main-direction: if($writing-mode != ‘LTR’, right, left); // maybe if($writing-mode != ‘RTL’, left, right);
$opposite-direction: if($writing-mode != ‘LTR’, left, right);

and this:
@function get-layout-opposite-direction() {
@return if(get-content-direction() == “RTL”, left, right); // maybe @return if(get-content-direction() == “RTL”, right, left);
}

Sorry, if I’m wrong.