Mistake in Bit Manipulation → Left & Right Shift Explanation

Describe your issue

Hello Team,

I found a mistake in the Bit Manipulation → Left & Right Shift topic in the Learn module.

Issue 1: Wrong direction written for Right Shift

The page says:

“25 >> 3 (25 is shifted towards left by 3 bits)”

This is incorrect.
It should be:

“25 >> 3 (25 is shifted towards right by 3 bits)”

Issue 2: Wrong padding description

The text says:

For left shift: “leftmost bits are padded with zeroes”

For right shift: “rightmost bits are padded with zeroes”

These are reversed.

Correct explanation:

A << B (left shift)
→ bits move left, rightmost B bits are padded with 0

A >> B (right shift)
→ bits move right, in Java leftmost bits are filled with sign bit

Example:

25 = 11001
25 << 3 = 11001000 (pads right with 0)
25 >> 3 = 00011

Please correct these errors.

Thank you!

Screenshot

Additional info

Hey @kramu581 ,

Thank you for your feedback, I have fixed this issue.