From 99a28fa3e5c5d8ccca239167405d72884c7a8304 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov <yegorslists@googlemail.com> Date: Tue, 24 Mar 2020 16:24:53 +0000 Subject: [PATCH] Fix typos in comments. --- scripts/ddr3_length_match.py | 4 ++-- utils/idftools/idf_parser.cpp | 2 +- utils/idftools/idf_parser.h | 2 +- utils/idftools/vrml_layer.cpp | 2 +- utils/idftools/vrml_layer.h | 6 +++--- utils/kicad2step/pcb/3d_resolver.cpp | 2 +- utils/kicad2step/pcb/kicadmodule.h | 2 +- utils/kicad2step/pcb/oce_utils.cpp | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/ddr3_length_match.py b/scripts/ddr3_length_match.py index 3ff4b757e3..fd2695ed9a 100755 --- a/scripts/ddr3_length_match.py +++ b/scripts/ddr3_length_match.py @@ -239,7 +239,7 @@ def report_teed_lengths(groupname, netname, target_length, tolerance): """ # Each net goes from CPU to four memory chips, these are the 4 lengths from - # CPU to each of the for memory chip balls/pads, some of these journies are + # CPU to each of the for memory chip balls/pads, some of these journeys are # common with one another but branch off at each T. lens[0] += len_t1 + len_t2_1 lens[1] += len_t1 + len_t2_1 @@ -295,7 +295,7 @@ if __name__ == "__main__": pass # kicad save process seems to momentarily delete file, so there's a race here with "No such file.." time.sleep(0.5) - # The "Debug" build of pcbnew writes to disk slowy, new file takes time to get to disk. + # The "Debug" build of pcbnew writes to disk slowly, new file takes time to get to disk. time.sleep(1) first = False diff --git a/utils/idftools/idf_parser.cpp b/utils/idftools/idf_parser.cpp index 1cfe166531..3eadb5a384 100644 --- a/utils/idftools/idf_parser.cpp +++ b/utils/idftools/idf_parser.cpp @@ -2325,7 +2325,7 @@ void IDF3_BOARD::readBoardFile( const std::string& aFileName, bool aNoSubstitute // section must be the Outline section, and the last section must be the // Placement section. All other sections may be in any order." - // further notes: Except for the HEADER section, sections may be preceeded by + // further notes: Except for the HEADER section, sections may be preceded by // comment lines which will be copied back out on write(). No comments may // be associated with the board file itself since the only logical location // for unambiguous association is at the end of the file, which is inconvenient diff --git a/utils/idftools/idf_parser.h b/utils/idftools/idf_parser.h index c3b25c95e1..6761386793 100644 --- a/utils/idftools/idf_parser.h +++ b/utils/idftools/idf_parser.h @@ -373,7 +373,7 @@ public: * * @param aComponentOutline is a pointer to the outline data to be added * - * @return true if the operation succeedes, otherwise false + * @return true if the operation succeeds, otherwise false */ bool AddOutlineData( IDF3_COMP_OUTLINE_DATA* aComponentOutline ); diff --git a/utils/idftools/vrml_layer.cpp b/utils/idftools/vrml_layer.cpp index 1520835aa5..c3a84c0fdf 100644 --- a/utils/idftools/vrml_layer.cpp +++ b/utils/idftools/vrml_layer.cpp @@ -1355,7 +1355,7 @@ bool VRML_LAYER::Write3DIndices( std::ostream& aOutFile, bool aIncludePlatedHole } -// add a triangular facet (triplet) to the ouptut index list +// add a triangular facet (triplet) to the output index list bool VRML_LAYER::addTriplet( VERTEX_3D* p0, VERTEX_3D* p1, VERTEX_3D* p2 ) { double dx0 = p1->x - p0->x; diff --git a/utils/idftools/vrml_layer.h b/utils/idftools/vrml_layer.h index a0eaa2db4f..1ff500c593 100644 --- a/utils/idftools/vrml_layer.h +++ b/utils/idftools/vrml_layer.h @@ -42,7 +42,7 @@ #endif #include <wx/glcanvas.h> // CALLBACK definition, needed on Windows - // alse needed on OSX to define __DARWIN__ + // also needed on OSX to define __DARWIN__ #ifdef __WXMAC__ # ifdef __DARWIN__ @@ -158,7 +158,7 @@ public: /** * Function GetArcParams - * retieves the parameters used in calculating the number of vertices in an arc + * retrieves the parameters used in calculating the number of vertices in an arc * * @param aMaxSeg is the maximum number of segments for an arc with cords of length aMinLength * @param aMinLength is the minimum length of cords in an arc @@ -230,7 +230,7 @@ public: * @param aContour is an index to a contour as returned by NewContour() * @param aHoleFlag determines if the contour must be a hole * - * @return bool: true if the operation suceeded + * @return bool: true if the operation succeeded */ bool EnsureWinding( int aContourID, bool aHoleFlag ); diff --git a/utils/kicad2step/pcb/3d_resolver.cpp b/utils/kicad2step/pcb/3d_resolver.cpp index fb9c9ccff9..946ff8851c 100644 --- a/utils/kicad2step/pcb/3d_resolver.cpp +++ b/utils/kicad2step/pcb/3d_resolver.cpp @@ -230,7 +230,7 @@ bool S3D_RESOLVER::createPathList( void ) fndummy.Assign( mS->second, "" ); wxString pathVal; - // ensure system ENV VARs supercede internally defined vars + // ensure system ENV VARs supersede internally defined vars if( wxGetEnv( mS->first, &pathVal ) && wxDirExists( pathVal ) ) fndummy.Assign( pathVal, "" ); else diff --git a/utils/kicad2step/pcb/kicadmodule.h b/utils/kicad2step/pcb/kicadmodule.h index d5042d475d..8cb9f9e000 100644 --- a/utils/kicad2step/pcb/kicadmodule.h +++ b/utils/kicad2step/pcb/kicadmodule.h @@ -63,7 +63,7 @@ private: std::string m_refdes; DOUBLET m_position; double m_rotation; // rotation (radians) - bool m_virtual; // true for a vitual (usually mechanical) component + bool m_virtual; // true for a virtual (usually mechanical) component std::vector< KICADPAD* > m_pads; std::vector< KICADCURVE* > m_curves; diff --git a/utils/kicad2step/pcb/oce_utils.cpp b/utils/kicad2step/pcb/oce_utils.cpp index 29871ce261..1556b9d243 100644 --- a/utils/kicad2step/pcb/oce_utils.cpp +++ b/utils/kicad2step/pcb/oce_utils.cpp @@ -1418,7 +1418,7 @@ bool OUTLINE::MakeShape( TopoDS_Shape& aShape, double aThickness ) return false; // there is already data in the shape object if( m_curves.empty() ) - return true; // suceeded in doing nothing + return true; // succeeded in doing nothing if( !m_closed ) return false; // the loop is not closed