Skip to content

Commit

Permalink
correct variable in example in migration.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored and FFY00 committed Jun 26, 2024
1 parent 0058f32 commit be5a270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ following example is often written for clarity as::
This can be easily rewritten like so::

ref = importlib_resources.files('my.package').joinpath('resource.dat')
contents = f.read_bytes()
contents = ref.read_bytes()


pkg_resources.resource_listdir()
Expand Down

0 comments on commit be5a270

Please sign in to comment.