]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Assorted formatting and comment tweaks in position.h
[stockfish] / src / position.cpp
index eed6d8850873209fbf072e3a1968b783eb9f06d6..d1f31146082b23801cb2d8d62f093c49cafe777e 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <algorithm>
 #include <cassert>
-#include <cstring>
+#include <cstring>   // For std::memset
 #include <iomanip>
 #include <sstream>
 
@@ -176,9 +176,8 @@ void Position::init() {
 }
 
 
-/// Position::operator=() creates a copy of 'pos'. We want the new born Position
-/// object to not depend on any external data so we detach state pointer from
-/// the source one.
+/// Position::operator=() creates a copy of 'pos' but detaching the state pointer
+/// from the source to be self-consistent and not depending on any external data.
 
 Position& Position::operator=(const Position& pos) {