summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/strformat.h
diff options
context:
space:
mode:
author Scott Stone <tafoid@gmail.com>2016-11-24 09:24:01 -0500
committer Scott Stone <tafoid@gmail.com>2016-11-24 09:24:01 -0500
commit30cda1d3e5b9195fbd1f23a3af4480666c750a34 (patch)
tree82f7b4b6bb3c61335c495d0925b393b212f6f3f0 /src/lib/util/strformat.h
parent7746690ddf1b6b806de046ec54fee954f09e182e (diff)
A round of spelling/typographical fixes to source comments (nw)
Diffstat (limited to 'src/lib/util/strformat.h')
-rw-r--r--src/lib/util/strformat.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h
index abb34e80d3f..db3666e448b 100644
--- a/src/lib/util/strformat.h
+++ b/src/lib/util/strformat.h
@@ -13,7 +13,7 @@
object with an appropriate stream output operator can be used as
a format argument with the %s conversion.
- Since the funcitons are implemented using C++ iostream, some
+ Since the functions are implemented using C++ iostream, some
behaviour more closely resembles iostream output operator behaviour
than printf behaviour. You are also exposed to bugs in your C++
iostream implementation (e.g. hexadecimal scientific format doesn't
@@ -28,7 +28,7 @@
Position specifiers for arguments (%123$), field width (*456$) and
precision (.*789$) are supported. Mixing explicit and implied
- positions for arugments/widths/precisions is discouraged, although
+ positions for arguments/widths/precisions is discouraged, although
it does produce deterministic behaviour.
The following format flags are recognised:
@@ -79,13 +79,13 @@
- d/i: signed decimal for integer/char/bool types
- u: unsigned decimal for integer/char/bool types
- o: unsigned octal for integer/char/bool types
- - x/X: lower/upppercase unsigned hexadecimal for integer/char/bool
+ - x/X: lower/uppercase unsigned hexadecimal for integer/char/bool
types or scientific hexadecimal for floating-point types
- e/E: lower/uppercase scientific decimal for floating-point types
- f/F: lower/uppercase fixed-point decimal for floating-point types
- g/G: default stream output format for floating-point types (may
differ from printf behaviour)
- - a/A: lower/upppercase scientific hexadecimal for floating-point
+ - a/A: lower/uppercase scientific hexadecimal for floating-point
types or hexadecimal for integer types
- c/C: cast integer types to stream's character type, no automatic
widening or narrowing
@@ -139,7 +139,7 @@
versa.
- Precision ignored for d/i/u/o/x/X conversions (should set minimum
digits to print).
- - Precisoin for s/S conversion is only honoured for string-like
+ - Precision for s/S conversion is only honoured for string-like
types (output character pointer/array and std::basic_string).
- If the output character type is not char, signed char or unsgined
char, printing the a value of this type with d/i/u/o/x/X