docs: Fixes found during the YAML conversion process

pull/8960/head
Daniel Mensinger 3 years ago
parent de32802ee4
commit c10e228371
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 3
      docs/markdown/Syntax.md
  2. 3
      mesonbuild/interpreter/compiler.py

@ -260,6 +260,9 @@ string = 'xyxHelloxyx'.strip('xy')
# 'string' now has the value 'Hello'
```
Since 0.43.0, you can specify one positional string argument,
and all characters in that string will be stripped.
#### .to_upper(), .to_lower()
```meson

@ -352,7 +352,7 @@ class CompilerHolder(ObjectHolder['Compiler']):
return had
@typed_pos_args('compiler.has_function', str)
@typed_kwargs('compiler.has_type', *_COMMON_KWS)
@typed_kwargs('compiler.has_function', *_COMMON_KWS)
def has_function_method(self, args: T.Tuple[str], kwargs: 'CommonKW') -> bool:
funcname = args[0]
extra_args = self._determine_args(kwargs['no_builtin_args'], kwargs['include_directories'], kwargs['args'])
@ -645,6 +645,7 @@ class CompilerHolder(ObjectHolder['Compiler']):
@noKwargs
@typed_pos_args('compiler.has_multi_arguments', varargs=str)
@FeatureNew('compiler.has_multi_arguments', '0.37.0')
def has_multi_arguments_method(self, args: T.Tuple[T.List[str]], kwargs: 'TYPE_kwargs') -> bool:
return self._has_argument_impl(args[0])

Loading…
Cancel
Save