Skip to content

Commit fb9eb1e

Browse files
committed
BUG: Replace "assigment" with "initialization" in the auto section
Just a nitpick... in C++ (even before using `auto`), the following is an initialization, not an assignment: ImageType::Pointer image = ImageType::New();
1 parent 2873538 commit fb9eb1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ \section{The auto Keyword}
15071507
The \code{auto} keyword should be used to specify a type in the following cases:
15081508
15091509
\begin{itemize}
1510-
\item The type is duplicated on the left side of an assigment when it is mandated on the
1510+
\item The type is duplicated on the left side of an initialization when it is mandated on the
15111511
right side, e.g. when there is an explicit cast or initializing with \code{new} or ITK's \code{::New()}.
15121512
\item When obtaining container elements, when the element type is obvious from the type
15131513
of the container.

0 commit comments

Comments
 (0)