diff options
author | John L. Villalovos <john@sodarock.com> | 2021-11-30 08:37:56 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-11-30 08:37:56 -0800 |
commit | b3b0b5f1da5b9da9bf44eac33856ed6eadf37dd6 (patch) | |
tree | 51d07a20421b89642f263c08f5cea61ca4924e61 /docs/gl_objects/snippets.rst | |
parent | 6b8067e668b6a37a19e07d84e9a0d2d2a99b4d31 (diff) | |
download | gitlab-jlvillal/const_explicit.tar.gz |
docs: update docs to use gitlab.const for constantsjlvillal/const_explicit
Update the docs to use gitlab.const to access constants.
Diffstat (limited to 'docs/gl_objects/snippets.rst')
-rw-r--r-- | docs/gl_objects/snippets.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gl_objects/snippets.rst b/docs/gl_objects/snippets.rst index 1bedb07..47166b9 100644 --- a/docs/gl_objects/snippets.rst +++ b/docs/gl_objects/snippets.rst @@ -44,7 +44,7 @@ Create a snippet:: Update the snippet attributes:: - snippet.visibility_level = gitlab.VISIBILITY_PUBLIC + snippet.visibility_level = gitlab.const.VISIBILITY_PUBLIC snippet.save() To update a snippet code you need to create a ``ProjectSnippet`` object:: |