aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.cc
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-04-28 13:02:39 +0200
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-04-28 13:02:39 +0200
commit402ee8ab64f9b11989cbdcf53f8ca513cb25e23f (patch)
tree1635e7fa11f516ee05ec6d6f90b937f837fa9778 /src/libutil/error.cc
parent5ef88457b8bdef957fcbb3cd0e7740595fad1949 (diff)
No point in passing string_views by reference
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r--src/libutil/error.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc
index 7dc8c1941..3644cada9 100644
--- a/src/libutil/error.cc
+++ b/src/libutil/error.cc
@@ -347,7 +347,7 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s
* to make a decision between the two following options.
*
* ``` long traces
- * inline void EvalState::evalAttrs(Env & env, Expr * e, Value & v, const Pos & pos, const std::string_view & errorCtx)
+ * inline void EvalState::evalAttrs(Env & env, Expr * e, Value & v, const Pos & pos, std::string_view errorCtx)
* {
* try {
* e->eval(*this, env, v);
@@ -361,7 +361,7 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s
* ```
*
* ``` short traces
- * inline void EvalState::evalAttrs(Env & env, Expr * e, Value & v, const Pos & pos, const std::string_view & errorCtx)
+ * inline void EvalState::evalAttrs(Env & env, Expr * e, Value & v, const Pos & pos, std::string_view errorCtx)
* {
* e->eval(*this, env, v);
* try {