diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-18 10:32:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-18 10:32:58 +0200 |
commit | cf652392b0d0a88899ac4178851affef43af1631 (patch) | |
tree | 2439f32a31534e09f383fbad2cfe94c512b4084f | |
parent | d0d723cb86696dda3a0bcb1aa2147f09669d58e5 (diff) |
Fix incorrect diag builtin examples
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | libbuild2/adhoc-rule-buildscript.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -15,11 +15,11 @@ Version 0.16.0 If the `diag` builtin is not specified, the default diagnostics is now equivalent to, for update: - diag <prog> ($>[0]) -> $< + diag <prog> ($<[0]) -> $> And for other operations: - diag <prog> $< + diag <prog> $> For details, see the print_diag() API description in diagnostics.hxx. See also GH issue #40 for additional background/details. diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index bd61a23..2cec3f3 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -1738,8 +1738,8 @@ namespace build2 // With this approach, the way to re-create the default diagnostics would // be: // - // diag <prog> ($>[0]) -> $< - // diag <prog> $< + // diag <prog> ($<[0]) -> $> + // diag <prog> $> // auto i (ns.begin ()), e (ns.end ()); |