Skip to content

Commit 1040301

Browse files
timgates42parthea
andauthored
docs: Fix a few typos (#1858)
There are small typos in: - googleapiclient/discovery_cache/file_cache.py - samples/analytics/management_v3_reference.py Fixes: - Should read `hierarchy` rather than `hiearchy`. - Should read `accessing` rather than `accesing`. Signed-off-by: Tim Gates <[email protected]> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 8c87a41 commit 1040301

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

googleapiclient/discovery_cache/file_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""File based cache for the discovery document.
1616
1717
The cache is stored in a single file so that multiple processes can
18-
share the same cache. It locks the file whenever accesing to the
18+
share the same cache. It locks the file whenever accessing to the
1919
file. When the cache content is corrupted, it will be initialized with
2020
an empty cache.
2121
"""

samples/analytics/management_v3_reference.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
The application manages autorization by saving an OAuth2.0 token in a local
2424
file and reusing the token for subsequent requests. It then traverses the
25-
Google Analytics Management hiearchy. It first retrieves and prints all the
25+
Google Analytics Management hierarchy. It first retrieves and prints all the
2626
authorized user's accounts, next it prints all the web properties for the
2727
first account, then all the profiles for the first web property and finally
2828
all the goals for the first profile. The sample then prints all the
@@ -72,9 +72,9 @@ def main(argv):
7272
scope="https://www.googleapis.com/auth/analytics.readonly",
7373
)
7474

75-
# Traverse the Management hiearchy and print results or handle errors.
75+
# Traverse the Management hierarchy and print results or handle errors.
7676
try:
77-
traverse_hiearchy(service)
77+
traverse_hierarchy(service)
7878

7979
except TypeError as error:
8080
# Handle errors in constructing a query.
@@ -96,8 +96,8 @@ def main(argv):
9696
)
9797

9898

99-
def traverse_hiearchy(service):
100-
"""Traverses the management API hiearchy and prints results.
99+
def traverse_hierarchy(service):
100+
"""Traverses the management API hierarchy and prints results.
101101
102102
This retrieves and prints the authorized user's accounts. It then
103103
retrieves and prints all the web properties for the first account,

0 commit comments

Comments
 (0)