Twitter-API-v2-sample-code
Twitter-API-v2-sample-code copied to clipboard
Update syntax in create_tweet.rb
Kernel#gets is not a method to read from stdin.
Use $stdin.gets instead
gets reads from argument input
Screenshot shows the current code fails to run because gets tries to parse argument input ARGV
Change to $stdin.gets solves this problem
CLA Assistant Lite bot All Contributors have signed the CLA. If the commit check is not passing, a maintainer must go the Checks tab of this PR and rerun the GitHub Action.
I have read the CLA Document and I hereby sign the CLA