Skip to content

fix: correct README examples and add missing godoc#4

Merged
basgys merged 1 commit intomainfrom
fix/v1-polish
Mar 16, 2026
Merged

fix: correct README examples and add missing godoc#4
basgys merged 1 commit intomainfrom
fix/v1-polish

Conversation

@basgys
Copy link
Contributor

@basgys basgys commented Mar 16, 2026

Summary

  • Fix two README code examples that used return nil, faults.Unauthenticated / return nil, faults.PermissionDenied inside functions with a single error return type — these would not compile
  • Add missing doc comment on WithUnimplemented, the only With* function without one

Note

Low Risk
Low risk documentation-only change: fixes two non-compiling README snippets and adds a missing GoDoc comment, with no runtime behavior changes.

Overview
Fixes the README Authentication and Permission examples to return a single error (removing the invalid return nil, ... pattern).

Adds the missing GoDoc comment for WithUnimplemented to match the other With* helpers.

Written by Cursor Bugbot for commit 91abab7. This will update automatically on new commits. Configure here.

Two README examples used 'return nil, fault' with a single-error return
type. Add missing doc comment on WithUnimplemented to match all other
With* functions.
@basgys basgys merged commit c4891a1 into main Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant