docs: correctly classify module methods as a method, not a function
@@ -117,7 +117,7 @@ reference of all supported functions.
The CMake configuration options object is very similar to the
[[@cfg_data]] object] object returned
by [[configuration_data]]. It
-is generated by the `subproject_options` function
+is generated by the `subproject_options` method.
All configuration options have to be set *before* the subproject is
configured and must be passed to the `subproject` method via the
@@ -131,7 +131,7 @@ together with the `options` kwarg.
### `subproject` object
-This object is returned by the `subproject` function described above
+This object is returned by the `subproject` method described above
and supports the following methods:
- `dependency(target)` returns a dependency object for any CMake target. The
@@ -139,7 +139,7 @@ and supports the following methods:
returned dependency object similar to the same kwarg in the
[[dependency]] function.
- `include_directories(target)` returns a Meson [[@inc]]
- object for the specified target. Using this function is not necessary
+ object for the specified target. Using this method is not necessary
if the dependency object is used.
- `target(target)` returns the raw build target.
- `target_type(target)` returns the type of the target as a string
@@ -152,8 +152,8 @@ and supports the following methods:
### `cmake options` object
-This object is returned by the `subproject_options()` function and
-consumed by the `options` kwarg of the `subproject` function. The
+This object is returned by the `subproject_options()` method and
+consumed by the `options` kwarg of the `subproject` method. The
following methods are supported:
- `add_cmake_defines({'opt1': val1, ...})` add additional CMake commandline defines
@@ -225,7 +225,7 @@ specification](Machine-files.md).
### cmake.write_basic_package_version_file()
-This function is the equivalent of the corresponding [CMake
+This method is the equivalent of the corresponding [CMake
function](https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#command:write_basic_package_version_file),
it generates a `name` package version file.
@@ -250,7 +250,7 @@ cmake.write_basic_package_version_file(name: 'myProject', version: '1.0.0')
### cmake.configure_package_config_file()
-This function is the equivalent of the corresponding [CMake
+This method is the equivalent of the corresponding [CMake
function](https://cmake.org/cmake/help/v3.11/module/CMakePackageConfigHelpers.html#generating-a-package-configuration-file),
it generates a `name` package configuration file from the `input`
template file. Just like the cmake function in this file the
