Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Oultram <michael.oultram@pexip.com>2022-10-19 13:34:21 +0300
committerMichael Oultram <michael.oultram@pexip.com>2022-10-19 13:38:36 +0300
commite0437ae8f63679d32986517c012c0ec2e26a6d51 (patch)
tree51a14dc4829735bf4d45a49b2461d32348d9c18d /tutorial
parent59daaa62aa4b7f9de6a50e070a63e778ed344cb6 (diff)
docs: fix references to renamed function gst_plugin_version_helper::get_info()
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/tutorial-1.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/tutorial-1.md b/tutorial/tutorial-1.md
index 1ebc61f03..d80d9b81c 100644
--- a/tutorial/tutorial-1.md
+++ b/tutorial/tutorial-1.md
@@ -105,13 +105,13 @@ Next we create `build.rs` in the project main directory.
```rust
fn main() {
- gst_plugin_version_helper::get_info()
+ gst_plugin_version_helper::info()
}
```
`build.rs` compiles and runs before anything else, [see](https://doc.rust-lang.org/cargo/reference/build-scripts.html).
-Therefore, `gst_plugin_version_helper::get_info()` will provide various information via `cargo` environment variables such as `COMMIT_ID` and `BUILD_REL_DATE` and these environment variables are then later accessed by our invocation of the `gst::plugin_define!` macro during compilation.
+Therefore, `gst_plugin_version_helper::info()` will provide various information via `cargo` environment variables such as `COMMIT_ID` and `BUILD_REL_DATE` and these environment variables are then later accessed by our invocation of the `gst::plugin_define!` macro during compilation.
In addition we’re defining an empty plugin entry point function that just returns `Ok(())`