Skip to content

Commit cde54c1

Browse files
Update README.md to reflect that CodeOwnership.for_class no longer takes a string. (#66)
1 parent 5407951 commit cde54c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ See `code_ownership_spec.rb` for an example.
9696
`CodeOwnership.for_class` can be given a class and will either return `nil`, or a `CodeTeams::Team`.
9797

9898
```ruby
99-
CodeOwnership.for_class(MyClass.name)
99+
CodeOwnership.for_class(MyClass)
100100
```
101101

102102
Under the hood, this finds the file where the class is defined and returns the owner of that file.

0 commit comments

Comments
 (0)