about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 1ede48a65f..5ffdbaa886 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -370,7 +370,7 @@ void ignoreException();
 #define ANSI_RED "\e[31;1m"
 
 
-/* Filter out ANSI escape codes from the given string. If ‘nixOnly’ is
+/* Filter out ANSI escape codes from the given string. If 'nixOnly' is
    set, only filter escape codes generated by Nixpkgs' stdenv (used to
    denote nesting etc.). */
 string filterANSIEscapes(const string & s, bool nixOnly = false);
@@ -391,15 +391,15 @@ string get(const T & map, const string & key, const string & def = "")
 }
 
 
-/* Call ‘failure’ with the current exception as argument. If ‘failure’
+/* Call 'failure' with the current exception as argument. If 'failure'
    throws an exception, abort the program. */
 void callFailure(const std::function<void(std::exception_ptr exc)> & failure,
     std::exception_ptr exc = std::current_exception());
 
 
-/* Evaluate the function ‘f’. If it returns a value, call ‘success’
-   with that value as its argument. If it or ‘success’ throws an
-   exception, call ‘failure’. If ‘failure’ throws an exception, abort
+/* Evaluate the function 'f'. If it returns a value, call 'success'
+   with that value as its argument. If it or 'success' throws an
+   exception, call 'failure'. If 'failure' throws an exception, abort
    the program. */
 template<class T>
 void sync2async(
@@ -415,8 +415,8 @@ void sync2async(
 }
 
 
-/* Call the function ‘success’. If it throws an exception, call
-   ‘failure’. If that throws an exception, abort the program. */
+/* Call the function 'success'. If it throws an exception, call
+   'failure'. If that throws an exception, abort the program. */
 template<class T>
 void callSuccess(
     const std::function<void(T)> & success,