Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in tutorial #115

Closed
wants to merge 1 commit into from
Closed

Fix typo in tutorial #115

wants to merge 1 commit into from

Conversation

lqez
Copy link

@lqez lqez commented Jul 30, 2013

I fixed typo and wrong representation of tree mode in tutorial.
htc is a obvious typo of hct and hct.mode is an octal value, so it must be 16384, not 040000 without %06o.

040000
'%o' % htc.blobs[0].mode # blobs have a specific mode though comparable to a standard linux fs
hct.mode # trees have the mode of a linux directory
16384
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To respect the original example, this change is more suitable.

oct(hct.mode)
'040000'
oct(hct.blobs[0].mode)
'0100644'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I didn't know oct().

@lqez
Copy link
Author

lqez commented Jul 30, 2013

I agree with @Kroisse.

@lqez lqez closed this Jul 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants