From 1993fb602e447f8b6123f6dad3e0e9ca34bf6970 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 4 Jul 2020 12:39:24 -0400 Subject: doc: Improve documentation of [provide] section in wrap files Explicitly document the behaviour of dependency('foo-1.0', required: false). --- docs/markdown/snippets/implicit_fallback.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/markdown/snippets/implicit_fallback.md') diff --git a/docs/markdown/snippets/implicit_fallback.md b/docs/markdown/snippets/implicit_fallback.md index 3d5a833..a6cbaf0 100644 --- a/docs/markdown/snippets/implicit_fallback.md +++ b/docs/markdown/snippets/implicit_fallback.md @@ -11,7 +11,7 @@ should be used for `foo`. ## Wrap file `provide` section Wrap files can define the dependencies it provides in the `[provide]` section. -When a wrap file provides the dependency `foo` any call do `dependency('foo')` +When `foo.wrap` provides the dependency `foo-1.0` any call do `dependency('foo-1.0')` will automatically fallback to that subproject even if no `fallback` keyword argument is given. See [Wrap documentation](Wrap-dependency-system-manual.md#provide_section). -- cgit v1.1