Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style guide fixed #1483

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/specs/source_styleguide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ \section*{Conditional Statements}

\section*{Conditional expressions}

The consequent and alternative expressions of conditional expressions are either
in the same line as the predicate (if they fit),
The consequent and alternative expressions of conditional expressions
are either in the same line as the predicate (if they fit),
or they are aligned under the beginning of the predicate.
Examples:
\begin{lstlisting}
Expand Down Expand Up @@ -205,6 +205,7 @@ \section*{Conditional expressions}
: y === 1
? 2
: A(x - 1, A(x, y - 1));
}

// bad style: line too long
function A(x,y) {
Expand Down
Loading