From cf652392b0d0a88899ac4178851affef43af1631 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Nov 2022 10:32:58 +0200 Subject: Fix incorrect diag builtin examples --- NEWS | 4 ++-- libbuild2/adhoc-rule-buildscript.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index ef283af..c71f9bd 100644 --- a/NEWS +++ b/NEWS @@ -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 ($>[0]) -> $< + diag ($<[0]) -> $> And for other operations: - diag $< + diag $> 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 ($>[0]) -> $< - // diag $< + // diag ($<[0]) -> $> + // diag $> // auto i (ns.begin ()), e (ns.end ()); -- cgit v1.1