Skip to content

Commit ab4d4b4

Browse files
authored
Fix various typos
* Fix typo 'seperate' in root-config.in * Fix: Correct spelling of separate, executable, occurred, destructor, and independent globally * Fix clang-format style in CudaTensor.h
1 parent 7e3791a commit ab4d4b4

File tree

56 files changed

+84
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+84
-84
lines changed

bindings/pyroot/cppyy/CPyCppyy/src/CPPMethod.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ void CPyCppyy::CPPMethod::SetPyError_(PyObject* msg)
277277
// Helper to report errors in a consistent format (derefs msg).
278278
//
279279
// Handles three cases:
280-
// 1. No Python error occured yet:
280+
// 1. No Python error occurred yet:
281281
// Set a new TypeError with the message "msg" and the docstring of this
282282
// C++ method to give some context.
283-
// 2. A C++ exception has occured:
283+
// 2. A C++ exception has occurred:
284284
// Augment the exception message with the docstring of this method
285-
// 3. A Python exception has occured:
285+
// 3. A Python exception has occurred:
286286
// Do nothing, Python exceptions are already informative enough
287287

288288
#if PY_VERSION_HEX >= 0x030c0000
@@ -319,7 +319,7 @@ void CPyCppyy::CPPMethod::SetPyError_(PyObject* msg)
319319
const char* cname = pyname ? CPyCppyy_PyText_AsString(pyname) : "Exception";
320320

321321
if (!isCppExc) {
322-
// this is the case where no Python error has occured yet, and we set a new
322+
// this is the case where no Python error has occurred yet, and we set a new
323323
// error with context info
324324
PyErr_Format(errtype, "%s =>\n %s: %s", cdoc, cname, cmsg ? cmsg : "");
325325
} else {

config/root-config.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ while test $# -gt 0; do
459459
--prefix=*)
460460
### Set the prefix
461461
if test "$platform" = "win32"; then
462-
### We need to expand the path to backslash seperated path
462+
### We need to expand the path to backslash separated path
463463
optarg=`cygpath -u $optarg`
464464
fi
465465
prefix=$optarg
@@ -477,7 +477,7 @@ while test $# -gt 0; do
477477
--exec-prefix=*)
478478
### Set the exec-prefix
479479
if test "$platform" = "win32"; then
480-
### We need to expand the path to backslash seperated path
480+
### We need to expand the path to backslash separated path
481481
optarg=`cygpath -u $optarg`
482482
fi
483483
exec_prefix=$optarg
@@ -531,7 +531,7 @@ while test $# -gt 0; do
531531
### Output the compiler flags
532532
if test "${incdir}" != "/usr/include"; then
533533
### In case we're on a Win32 system, we need to expand the
534-
### path to a backslash seperated path
534+
### path to a backslash separated path
535535
if test "$platform" = "win32"; then
536536
includes=-I\'`cygpath -w ${incdir}`\'
537537
else

core/base/src/TFolder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ void TFolder::ls(Option_t *option) const
418418
}
419419

420420
////////////////////////////////////////////////////////////////////////////////
421-
/// Return occurence number of object in the list of objects of this folder.
421+
/// Return occurrence number of object in the list of objects of this folder.
422422
/// The function returns the number of objects with the same name as object
423423
/// found in the list of objects in this folder before object itself.
424424
/// If only one object is found, return 0.

core/base/src/TObject.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ void TObject::RecursiveRemove(TObject *)
690690
/// ascii file.
691691
///
692692
/// - if "filename" contains ".cc" the object is saved in filename as C code
693-
/// independant from ROOT. The code is generated via SavePrimitive().
693+
/// independent from ROOT. The code is generated via SavePrimitive().
694694
/// Specific code should be implemented in each object to handle this
695695
/// option. Like in TF1::SavePrimitive().
696696
///
@@ -722,7 +722,7 @@ void TObject::SaveAs(const char *filename, Option_t *option) const
722722
return;
723723
}
724724

725-
//==============Save object as a C, ROOT independant, file===================
725+
//==============Save object as a C, ROOT independent, file===================
726726
if (filename && strstr(filename,".cc")) {
727727
TString fname;
728728
if (filename && strlen(filename) > 0) {

core/base/src/TROOT.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ const char *TROOT::FindObjectClassName(const char *name) const
14661466

14671467
////////////////////////////////////////////////////////////////////////////////
14681468
/// Return path name of obj somewhere in the //root/... path.
1469-
/// The function returns the first occurence of the object in the list
1469+
/// The function returns the first occurrence of the object in the list
14701470
/// of folders. The returned string points to a static char array in TROOT.
14711471
/// If this function is called in a loop or recursively, it is the
14721472
/// user's responsibility to copy this string in their area.

core/clingutils/res/TClingUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ inline void LevelPrint(bool prefix, int level, const char *location, const char
843843
}
844844

845845
//______________________________________________________________________________
846-
// Use this function in case an error occured.
846+
// Use this function in case an error occurred.
847847
inline void Error(const char *location, const char *va_(fmt), ...)
848848
{
849849
va_list ap;
@@ -853,7 +853,7 @@ inline void Error(const char *location, const char *va_(fmt), ...)
853853
}
854854

855855
//______________________________________________________________________________
856-
// Use this function in case a system (OS or GUI) related error occured.
856+
// Use this function in case a system (OS or GUI) related error occurred.
857857
inline void SysError(const char *location, const char *va_(fmt), ...)
858858
{
859859
va_list ap;

core/cont/src/TObjArray.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can either make a shallow copy of the array:
3232
otherarr = new TObjArray(*myarr);
3333
*otherarr = *myarr;
3434
~~~
35-
in which case ownership (if any) is not transfered but the other
35+
in which case ownership (if any) is not transferred but the other
3636
array points to the same object as the original array. Note that
3737
if the content of either array is deleted the other array is not
3838
notified in any way (i.e. still points to the now deleted objects).

core/dictgen/res/OptionParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ struct Parser::Action
13791379
* options if they have a Descriptor whose Descriptor::check_arg does not return
13801380
* @ref ARG_ILLEGAL.
13811381
*
1382-
* Returns @c false iff a fatal error has occured and the parse should be aborted.
1382+
* Returns @c false iff a fatal error has occurred and the parse should be aborted.
13831383
*/
13841384
virtual bool perform(Option&)
13851385
{

core/dictgen/src/SelectionRules.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ const BaseSelectionRule *SelectionRules::IsLinkdefEnumSelected(const clang::Enum
10271027
}
10281028
}
10291029

1030-
// In rootcint we could select and deselect methods independantly of the class/struct/union rules
1030+
// In rootcint we could select and deselect methods independently of the class/struct/union rules
10311031
// That's why we first have to check the explicit rules for the functions - to see if there
10321032
// is rule corresponding to our method.
10331033
// Which is more - if we have (and we can have) a pattern for the parent class, than a pattern for the

core/dictgen/src/rootcling_impl.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5710,7 +5710,7 @@ int GenReflexMain(int argc, char **argv)
57105710
" The name influences the name of the created pcm:\n"
57115711
" 1) If it is not specified, the pcm is called libINPUTHEADER_rdict.pcm\n"
57125712
" 2) If it is specified, the pcm is called libTARGETLIBRARY_rdict.pcm\n"
5713-
" Any \"liblib\" occurence is transformed in the expected \"lib\".\n"
5713+
" Any \"liblib\" occurrence is transformed in the expected \"lib\".\n"
57145714
" 3) If this is specified in conjunction with --multiDict, the output is\n"
57155715
" libTARGETLIBRARY_DICTIONARY_rdict.pcm\n";
57165716

0 commit comments

Comments
 (0)