Unverified Commit 29d102f8 authored by Max Wittig's avatar Max Wittig 🌍 Committed by GitHub
Browse files

Merge pull request #841 from python-gitlab/docs/project-snippets

docs(snippets): fix project-snippets layout
parents de19296c 7feb97e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ Update the snippet attributes::
    snippet.visibility_level = gitlab.Project.VISIBILITY_PUBLIC
    snippet.save()

To update a snippet code you need to create a ``ProjectSnippet`` object:
To update a snippet code you need to create a ``ProjectSnippet`` object::

    snippet = gl.snippets.get(snippet_id)
    project = gl.projects.get(snippet.projec_id, lazy=True)