summaryrefslogtreecommitdiff
path: root/docs/gl_objects/snippets.rst
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-11-30 08:37:56 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-11-30 08:37:56 -0800
commitb3b0b5f1da5b9da9bf44eac33856ed6eadf37dd6 (patch)
tree51d07a20421b89642f263c08f5cea61ca4924e61 /docs/gl_objects/snippets.rst
parent6b8067e668b6a37a19e07d84e9a0d2d2a99b4d31 (diff)
downloadgitlab-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.rst2
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::