Skip to content

Commit

Permalink
BUG: Replace "assigment" with "initialization" in the auto section
Browse files Browse the repository at this point in the history
Just a nitpick... in C++ (even before using `auto`), the following is
an initialization, not an assignment:

    ImageType::Pointer image = ImageType::New();
  • Loading branch information
N-Dekker committed Oct 20, 2021
1 parent 2873538 commit fb9eb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ \section{The auto Keyword}
The \code{auto} keyword should be used to specify a type in the following cases:
\begin{itemize}
\item The type is duplicated on the left side of an assigment when it is mandated on the
\item The type is duplicated on the left side of an initialization when it is mandated on the
right side, e.g. when there is an explicit cast or initializing with \code{new} or ITK's \code{::New()}.
\item When obtaining container elements, when the element type is obvious from the type
of the container.
Expand Down

0 comments on commit fb9eb1e

Please sign in to comment.