blueloveTH 3 년 전
부모
커밋
58adfe6d17
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/str.h

+ 1 - 1
src/str.h

@@ -118,7 +118,7 @@ struct Str{
     }
     }
 
 
     friend std::ostream& operator<<(std::ostream& os, const Str& str){
     friend std::ostream& operator<<(std::ostream& os, const Str& str){
-        if(str.data!=nullptr) os.write(str.data, str.size);
+        os.write(str.data, str.size);
         return os;
         return os;
     }
     }